using DAO;
using Easislides.Properties;
using GetOffice;
using System;
using System.ComponentModel;
using System.Data.OleDb;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
using System.Xml;
namespace Easislides
{
    public class FrmMain : Form
    {
        private enum LiveShowAction
        {
            Remote_SongChanged,
            Remote_SlideChanged,
            Remote_SongJumpTo,
            Remote_MessageAlertRequested,
            Remote_ParentalAlertRequested,
            Remote_ReferenceAlertShow,
            Remote_ReferenceAlertHide,
            Remote_LyricsAlertShow,
            Remote_FormatChanged,
            Remote_PanelChanged,
            Remote_DefaultBackgroundChanged,
            Remote_BackgroundChanged,
            Remote_MoveToItemChanged,
            Remote_LiveBlackClearChanged,
            Remote_ChineseChanged,
            Remote_WorshipListChanged,
            Remote_LiveCamStartStop,
            Remote_LiveCamUpdate,
            Remote_RefreshMediaWindow,
            Remote_RotateOnOffChanged,
            Remote_GetMediaTimings,
            Remote_MediaItemPausePlay
        }
        private enum DragDropSource
        {
            WorshipList,
            SongsList,
            InfoScreenList,
            PowerpointList,
            MediaList,
            BiblePassage
        }
        private const int MinListVisibleWidth = 60;
        private const int MaxImageContainers = 1024;
        private const int MaxLyricsContainers = 30000;
        private const int MaxTIHolders = 1024;
        private const int MaxImagesLookup = 1024;
        private bool ForceFormClose = false;
        private PopupWindowHelper popupHelper = null;
        private string PopupBtnPressed = "";
        private string Splitter_FolderWidth = "FolderWidthRatio";
        private string Splitter_FolderHeight = "FolderHeightRatio";
        private string Splitter_OutputWidth = "OutputWidthRatio";
        private string Splitter_PreviewLyricsHeight = "PreviewLyricsHeightRatio";
        private string Splitter_outputLyricsHeight = "outputLyricsHeightRatio";
        private string DragListView = "";
        private string PowerpointCurPreview = "";
        private Color Pic_BorderColour = gf.BlackScreenColour;
        private Color Pic_HighlightColour = Color.Red;
        private Color DefaultButtonForeColour = Color.Gray;
        private bool InitFormLoad = true;
        private string InContents = "";
        private bool ImplementFolderChange = false;
        private gf.SortBy CurStyle = gf.SortBy.Alpha;
        private string[] sArray;
        private string[,] tempFolderLyricsHeading = new string[41, 2];
        private string[] Verse = new string[160];
        private string KeyCapoText = "";
        private string[] BackgroundImagename = new string[1024];
        private string BackgroundCurImagePath = "";
        private int BackgroundTotalImagesCount = 0;
        private string[] ExternalPPTIHoldersFileName = new string[1024];
        private string[] ExternalPPImagename = new string[1024];
        private string ExternalPPCurImagePath = "";
        private int ExternalPPTotalImagesCount = 0;
        private string[] OutputPPTIHoldersFileName = new string[1024];
        private string[] OutputPPImagename = new string[1024];
        private int[] OutputPPSlideNumber = new int[1024];
        private int OutputPPTotalImagesCount = 0;
        private string[] PreviewPPTIHoldersFileName = new string[1024];
        private string[] PreviewPPImagename = new string[1024];
        private int[] PreviewPPSlideNumber = new int[1024];
        private int PreviewPPTotalImagesCount = 0;
        private bool UpdatingFormatFields = false;
        private bool UpdatingDefaultFields = false;
        private string[] LastSelectedSongsListItem = new string[2];
        private bool HB_SearchInProgress = false;
        private string HB_CurSelectedTitle = "";
        private string HB_CurSelectedPassages = "";
        private string HB_CurSelectedFormat = "";
        private int WorshipListInsertAt = -1;
        private string GenerateListingDir = "";
        private string GenerateListingFileName = "";
        private bool SaveToRegistryOnClosing = true;
        private string StatusBarOutputPaneMess = "";
        private Bitmap SingleMonIcon;
        private Bitmap DualMonIcon;
        private Bitmap Keyboard1Icon;
        private PP MainPPT = new PP();
        private int frmHeight;
        private int frmWidth;
        private int frmTop;
        private int frmLeft;
        private ImageCanvas[] BackgroundImagesCanvas = new ImageCanvas[1024];
        private ImageCanvas[] Powerpoint_PreviewCanvas = new ImageCanvas[1024];
        private ImageCanvas[] Powerpoint_OutputCanvas = new ImageCanvas[1024];
        private ImageCanvas[] Powerpoint_ExternalCanvas = new ImageCanvas[1024];
        private ImageTransitionControl PreviewScreen = new ImageTransitionControl();
        private ImageTransitionControl OutputScreen = new ImageTransitionControl();
        private int ThumbImageClicked = 0;
        private RichTextBox[] Lyrics_PreviewBox = new RichTextBox[30000];
        private RichTextBox[] Lyrics_OutputBox = new RichTextBox[30000];
        private bool WorshipListDoubleClick = false;
        private int LoadRepaintCount = 0;
        private bool FormFirstLoad = true;
        private FrmLaunchShow LiveShow = new FrmLaunchShow();
        private FrmShowAlert AlertWindow = new FrmShowAlert();
        private IContainer components = null;
        private ToolStripContainer toolStripContainerMain;
        private MenuStrip menuStripMain;
        private ToolStrip toolStripMain;
        private SplitContainer splitContainerMain;
        private SplitContainer splitContainer1;
        private StatusStrip statusStripMain;
        private SplitContainer splitContainer2;
        private SplitContainer splitContainerPreview;
        private SplitContainer splitContainerOutput;
        private TabControl tabControlSource;
        private TabPage tabFolders;
        private TabPage tabImages;
        private TabPage tabBibles;
        private TabPage tabDefault;
        private TabControl tabControlLists;
        private TabPage tabWorshipList;
        private TabPage tabPraiseBook;
        private Panel panel1;
        private Panel panel2;
        private Panel panel3;
        private Button PreviewBtnSlideDown;
        private Button PreviewBtnSlideUp;
        private Panel panel6;
        private Button OutputBtnItemDown;
        private Button OutputBtnItemUp;
        private Panel panel7;
        private Panel panel8;
        private Panel PreviewHolder;
        private Panel PreviewBack;
        private Panel OutputHolder;
        private Panel OutputBack;
        private Button OutputBtnSlideDown;
        private Button OutputBtnSlideUp;
        private Panel panel10;
        private Panel panel9;
        private CheckBox cbOutputBlack;
        private CheckBox cbOutputClear;
        private CheckBox cbGoLive;
        private Button btnToOutput;
        private Panel panelPreviewTop;
        private Panel panelOutputTop;
        private Panel panelPreviewBottom;
        private Panel panelOutputBottom;
        private RadioButton IndradioButtonText;
        private RadioButton IndradioButtonFormat;
        private ToolStripButton Main_New;
        private ToolStripButton Main_Edit;
        private ToolStripButton Main_Copy;
        private ToolStripButton Main_Move;
        private ToolStripButton Main_Delete;
        private ToolStripSeparator toolStripSeparator1;
        private ToolStripButton Main_Media;
        private ToolStripButton Main_Refresh;
        private ToolStripSeparator toolStripSeparator2;
        private ToolStripButton Main_Options;
        private ToolStripSeparator toolStripSeparator3;
        private ToolStripButton Main_Alerts;
        private ToolStripButton Main_Chinese;
        private ToolStripSeparator toolStripSeparator4;
        private ToolStripButton Main_Find;
        private ToolStripComboBox Main_QuickFind;
        private Panel IndPanel;
        private CheckBox Ind_checkBox;
        private GroupBox IndgroupBox1;
        private GroupBox IndgroupBox3;
        private ListView SongsList;
        private ComboBox SongFolder;
        private ComboBox ImagesFolder;
        private ComboBox BookLookup;
        private Panel panelBible2;
        private ToolStrip toolStripBible2;
        private ToolStripButton Bibles_Go;
        private TextBox BibleUserLookup;
        private RichTextBox BibleText;
        private Panel panelFolders;
        private ToolStrip toolStripFolders;
        private ToolStripButton Folders_WordCount;
        private ListView WorshipListItems;
        private ComboBox SessionList;
        private Panel panelPraiseBook1;
        private ListView PraiseBookItems;
        private ComboBox PraiseBook;
        private Panel panelWorshipList2;
        private ToolStrip toolStripWorshipList2;
        private ToolStripButton WL_Up;
        private ToolStripButton WL_Down;
        private Panel panelPraiseBook2;
        private ToolStrip toolStripPraiseBook2;
        private ToolStripButton PB_Delete;
        private Panel panelWorshipList1;
        private ToolStrip toolStripWorshipList1;
        private ToolStripButton WL_Manage;
        private ToolStripButton WL_Add;
        private ToolStripButton WL_Open;
        private ToolStrip toolStripPraiseBook1;
        private ToolStripButton PB_Manage;
        private ToolStripButton PB_Add;
        private ToolStripButton WL_Delete;
        private ToolStripSeparator toolStripSeparator6;
        private ToolStripButton WL_Word;
        private ToolStripSeparator toolStripSeparator7;
        private ToolStripButton PB_Word;
        private ToolStripButton PB_Html;
        private ToolStripButton PB_WordCount;
        private Panel DefPanel;
        private GroupBox DefgroupBox2;
        private GroupBox DefgroupBox3;
        private GroupBox DefgroupBox1;
        private Panel panelDef1;
        private ToolStrip toolStripDef1;
        private ToolStripButton Def_Outline;
        private ToolStripButton Def_Shadow;
        private ToolStripDropDownButton Def_Region;
        private ToolStripMenuItem Def_ShowRegion1;
        private ToolStripMenuItem Def_ShowRegion2;
        private ToolStripMenuItem Def_ShowRegionBoth;
        private ToolStripButton Def_Interlace;
        private ToolStripButton Def_Notations;
        private ToolStripButton Def_ToZero;
        private ToolStripDropDownButton Def_VAlign;
        private ToolStripMenuItem Def_VAlignTop;
        private ToolStripMenuItem Def_VAlignCentre;
        private ToolStripMenuItem Def_VAlignBottom;
        private Panel panelDef2;
        private ToolStrip toolStripDef2;
        private ToolStripDropDownButton Def_R1Align;
        private ToolStripMenuItem Def_R1AlignLeft;
        private ToolStripMenuItem Def_R1AlignCentre;
        private ToolStripMenuItem Def_R1AlignRight;
        private ToolStripDropDownButton Def_R2Align;
        private ToolStripMenuItem Def_R2AlignLeft;
        private ToolStripMenuItem Def_R2AlignCentre;
        private ToolStripMenuItem Def_R2AlignRight;
        private ToolStripButton Def_R1Colour;
        private ToolStripButton Def_R2Colour;
        private Button DefApplyDefaultsBtn;
        private Panel panelDef3;
        private ToolStrip toolStripDef3;
        private ToolStripDropDownButton Def_ImageMode;
        private ToolStripMenuItem Def_ImageTile;
        private ToolStripMenuItem Def_ImageCentre;
        private ToolStripMenuItem Def_ImageBestFit;
        private ToolStripButton Def_BackColour;
        private ToolStripButton Def_NoImage;
        private Panel panelDef4;
        private ToolStrip toolStripDef4;
        private ToolStripComboBox Def_TransItem;
        private ToolStripComboBox Def_TransSlides;
        private Panel panelDef6;
        private ToolStrip toolStripDef6;
        private ToolStripButton Def_PanelShow;
        private ToolStripButton Def_PanelSong;
        private ToolStripButton Def_PanelSlides;
        private ToolStripButton Def_PanelTitle;
        private ToolStripButton Def_PanelCopyright;
        private Panel panelDef5;
        private ToolStrip toolStripDef5;
        private ToolStripButton Def_PanelTextColour;
        private ToolStripSeparator toolStripSeparator14;
        private ToolStripButton Def_PanelBackColour;
        private ToolStripButton Def_PanelAsR1;
        private ToolStripButton Def_PanelTransparent;
        private Panel panelInd1;
        private ToolStrip toolStripInd1;
        private ToolStripButton Ind_Outline;
        private ToolStripButton Ind_Shadow;
        private ToolStripDropDownButton Ind_Region;
        private ToolStripMenuItem Ind_ShowRegion1;
        private ToolStripMenuItem Ind_ShowRegion2;
        private ToolStripMenuItem Ind_ShowRegionBoth;
        private ToolStripDropDownButton Ind_VAlign;
        private ToolStripMenuItem Ind_VAlignTop;
        private ToolStripMenuItem Ind_VAlignCentre;
        private ToolStripMenuItem Ind_VAlignBottom;
        private ToolStripButton Ind_Interlace;
        private ToolStripButton Ind_Notations;
        private NumericUpDown Ind_BottomUpDown;
        private NumericUpDown Ind_RightUpDown;
        private NumericUpDown Ind_LeftUpDown;
        private Label label3;
        private Label label2;
        private Label label1;
        private GroupBox IndgroupBox2;
        private Panel panelInd3;
        private ToolStrip toolStripInd3;
        private ToolStripComboBox Ind_TransItem;
        private ToolStripComboBox Ind_TransSlides;
        private Panel panelInd2;
        private ToolStrip toolStripInd2;
        private ToolStripDropDownButton Ind_ImageMode;
        private ToolStripMenuItem Ind_ImageTile;
        private ToolStripMenuItem Ind_ImageCentre;
        private ToolStripMenuItem Ind_ImageBestFit;
        private ToolStripButton Ind_NoImage;
        private ToolStripButton Ind_BackColour;
        private ToolStripButton Ind_AssignMedia;
        private Panel panelInd4;
        private ToolStrip toolStripInd4;
        private ToolStripSeparator toolStripSeparator13;
        private ToolStripDropDownButton Ind_R1Align;
        private ToolStripMenuItem Ind_R1AlignLeft;
        private ToolStripMenuItem Ind_R1AlignCentre;
        private ToolStripMenuItem Ind_R1AlignRight;
        private ToolStripButton Ind_R1Colour;
        private ToolStripButton Ind_R1Bold;
        private ToolStripButton Ind_R1Underline;
        private NumericUpDown Ind_Reg1TopUpDown;
        private Label label4;
        private NumericUpDown Ind_Reg1SizeUpDown;
        private Label labelBlackScreenOn;
        private Panel panelInd5;
        private ToolStrip toolStripInd5;
        private ToolStripComboBox Ind_Reg1FontsList;
        private GroupBox IndgroupBox4;
        private Panel panelInd7;
        private ToolStrip toolStripInd7;
        private ToolStripComboBox Ind_Reg2FontsList;
        private NumericUpDown Ind_Reg2SizeUpDown;
        private Label label6;
        private NumericUpDown Ind_Reg2TopUpDown;
        private Label label7;
        private Panel panelInd6;
        private ToolStrip toolStripInd6;
        private ToolStripButton Ind_R2Bold;
        private ToolStripButton Ind_R2Underline;
        private ToolStripSeparator toolStripSeparator15;
        private ToolStripDropDownButton Ind_R2Align;
        private ToolStripMenuItem Ind_R2AlignLeft;
        private ToolStripMenuItem Ind_R2AlignCentre;
        private ToolStripMenuItem Ind_R2AlignRight;
        private ToolStripButton Ind_R2Colour;
        //private ImageList imageListSys;
        private ColumnHeader columnHeader1;
        private ColumnHeader columnHeader2;
        private ColumnHeader columnHeader3;
        private ColumnHeader columnHeader4;
        private ColumnHeader columnHeader5;
        private ColumnHeader columnHeader6;
        private ColumnHeader columnHeader7;
        private ColumnHeader columnHeader8;
        private ColumnHeader columnHeader9;
        private ColumnHeader columnHeader10;
        private ColumnHeader columnHeader11;
        private ColumnHeader columnHeader12;
        private ColumnHeader columnHeader13;
        private ColumnHeader columnHeader14;
        private ToolStripMenuItem Menu_MainFile;
        private ToolStripMenuItem Menu_MainEdit;
        private ToolStripMenuItem Menu_MainView;
        private ToolStripMenuItem Menu_MainOutput;
        private ToolStripMenuItem Menu_MainTools;
        private ToolStripMenuItem Menu_MainHelp;
        private ToolStripMenuItem Menu_WorshipSessions;
        private ToolStripMenuItem Menu_PraiseBookTemplates;
        private ToolStripSeparator toolStripSeparator18;
        private ToolStripMenuItem Menu_Exit;
        private ToolStripMenuItem Menu_AddSong;
        private ToolStripSeparator toolStripSeparator19;
        private ToolStripMenuItem Menu_EditSong;
        private ToolStripMenuItem Menu_CopySong;
        private ToolStripMenuItem Menu_MoveSong;
        private ToolStripMenuItem Menu_DeleteSong;
        private ToolStripMenuItem Menu_SelectAll;
        private ToolStripMenuItem Menu_Find;
        private ToolStripSeparator toolStripSeparator21;
        private ToolStripMenuItem Menu_ReArrangeSongFolders;
        private ToolStripMenuItem Menu_EasiSlidesFolder;
        private ToolStripMenuItem Menu_Refresh;
        private ToolStripMenuItem Menu_StatusBar;
        private ToolStripSeparator toolStripSeparator23;
        private ToolStripMenuItem Menu_Options;
        private ToolTip toolTip1;
        private TabControl TabBibleVersions;
        private TabPage tabPage1;
        private Timer TimerFlasher;
        private ListView PreviewPanelDisplayName;
        private ListView OutputPanelDisplayName;
        private ColumnHeader columnHeader15;
        private ColumnHeader columnHeader16;
        private ContextMenuStrip CMenuBible;
        private ToolStripMenuItem CMenuBible_SelectAll;
        private ToolStripMenuItem CMenuBible_UnselectAll;
        private ToolStripMenuItem CMenuBible_AddShow;
        private ToolStripMenuItem CMenuBible_AddRegion2;
        private ToolStripSeparator toolStripSeparator17;
        private ToolStripSeparator toolStripSeparator24;
        private ToolStripMenuItem CMenuBible_Copy;
        private ToolStripMenuItem CMenuBible_CopyInfoScreen;
        private ColumnHeader columnHeader17;
        private ColumnHeader columnHeader18;
        private ColumnHeader columnHeader19;
        private ColumnHeader columnHeader20;
        private ColumnHeader columnHeader21;
        private ColumnHeader columnHeader22;
        private Button PreviewBtnItemDown;
        private Button PreviewBtnItemUp;
        private OpenFileDialog openFileDialog1;
        private ToolStripStatusLabel StatusBarPanel1;
        private ToolStripStatusLabel StatusBarPanel2;
        private ToolStripStatusLabel StatusBarPanel3;
        private ToolStripStatusLabel StatusBarPanel4;
        private ToolStripButton Def_AssignMedia;
        private ToolStripSeparator toolStripSeparator27;
        private ToolStripMenuItem Menu_StartShow;
        private ToolStripSeparator toolStripSeparator28;
        private ToolStripMenuItem Menu_BlackScreen;
        private ToolStripMenuItem Menu_ClearScreen;
        private ToolStripSeparator toolStripSeparator29;
        private ToolStripMenuItem Menu_AlertWindow;
        private ToolStripMenuItem Menu_StopAlert;
        private ToolStripSeparator toolStripSeparator30;
        private ToolStripMenuItem Menu_SwitchChinese;
        private Timer TimerReMax;
        private ToolStripMenuItem Menu_Contents;
        private ToolStripMenuItem Menu_HelpWeb;
        private ToolStripSeparator toolStripSeparator31;
        private ToolStripMenuItem Menu_Register;
        private ToolStripMenuItem Menu_About;
        private ToolStripMenuItem Menu_Import;
        private ToolStripMenuItem Menu_Export;
        private ToolStripSeparator toolStripSeparator32;
        private ToolStripMenuItem Menu_Recover;
        private ToolStripMenuItem Menu_Empty;
        private ToolStripSeparator toolStripSeparator33;
        private ToolStripMenuItem Menu_AddToUsages;
        private ToolStripMenuItem Menu_ViewUsages;
        private ToolStripSeparator toolStripSeparator34;
        private ToolStripMenuItem Menu_SmartMerge;
        private ToolStripMenuItem Menu_Compact;
        private Timer TimerSearch;
        private ContextMenuStrip CMenuSongs;
        private ToolStripMenuItem CMenuSongs_SelectAll;
        private ToolStripMenuItem CMenuSongs_UnselectAll;
        private ToolStripMenuItem CMenuSongs_AddShow;
        private ToolStripMenuItem CMenuSongs_Edit;
        private ToolStripMenuItem CMenuSongs_Refresh;
        private ContextMenuStrip CMenuImages;
        private ToolStripMenuItem CMenuImages_AddItem;
        private ToolStripMenuItem CMenuImages_AddDefault;
        private ToolStripSeparator toolStripSeparator35;
        private ToolStripMenuItem CMenuImages_Refresh;
        private ContextMenuStrip CMenuPraiseB;
        private ToolStripMenuItem CMenuPraiseB_SelectAll;
        private ToolStripMenuItem CMenuPraiseB_UnselectAll;
        private ToolStripMenuItem CMenuPraiseB_Clear;
        private ToolStripMenuItem CMenuPraiseB_Edit;
        private ToolStripSeparator toolStripSeparator36;
        private ContextMenuStrip CMenuWorship;
        private ToolStripMenuItem CMenuWorship_SelectAll;
        private ToolStripMenuItem CMenuWorship_UnselectAll;
        private ToolStripMenuItem CMenuWorship_Clear;
        private ToolStripMenuItem CMenuWorship_Edit;
        private ToolStripMenuItem CMenuWorship_Play;
        private ToolStripMenuItem CMenuWorship_AddUsages;
        private ToolStripSeparator toolStripSeparator37;
        private ToolStripSeparator toolStripSeparator38;
        private ToolStripSeparator toolStripSeparator39;
        private Timer TimerMessagingWindowOpen;
        private ToolStripMenuItem Menu_EditHistoryList;
        private ToolStripSeparator toolStripSeparator41;
        private ToolStripMenuItem Menu_UseSongNumbering;
        private ToolStripSeparator toolStripSeparator20;
        private TabPage tabFiles;
        private ListView InfoScreenList;
        private ColumnHeader columnHeader23;
        private ColumnHeader columnHeader24;
        private ColumnHeader columnHeader25;
        private ColumnHeader columnHeader26;
        private ColumnHeader columnHeader27;
        private ColumnHeader columnHeader28;
        private ColumnHeader columnHeader29;
        private Panel panelExternalFiles1;
        private ToolStrip toolStripPowerpoint1;
        private ToolStripButton PP_OpenFolder;
        private ContextMenuStrip CMenuFiles;
        private ToolStripMenuItem CMenuFiles_SelectAll;
        private ToolStripMenuItem CMenuFiles_UnselectAll;
        private ToolStripMenuItem CMenuFiles_AddShow;
        private ToolStripMenuItem CMenuFiles_Edit;
        private ToolStripMenuItem CMenuFiles_Refresh;
        private ToolStripSeparator toolStripSeparator22;
        private RadioButton IndradioButtonInfo;
        private RichTextBox PreviewInfo;
        private ToolStripDropDownButton Def_Head;
        private ToolStripMenuItem Def_HeadNoTitles;
        private ToolStripMenuItem Def_HeadAllTitles;
        private ToolStripMenuItem Def_HeadFirstScreen;
        private ToolStripDropDownButton Ind_Head;
        private ToolStripMenuItem Ind_HeadNoTitles;
        private ToolStripMenuItem Ind_HeadAllTitles;
        private ToolStripMenuItem Ind_HeadFirstScreen;
        private ComboBox InfoScreenFolder;
        private Panel panelExternalFiles;
        private Panel panelImagesTop;
        private FlowLayoutPanel flowLayoutImages;
        private FlowLayoutPanel flowLayoutPreviewPowerPoint;
        private FlowLayoutPanel flowLayoutOutputPowerPoint;
        private FlowLayoutPanel flowLayoutExternalPowerPoint;
        private ToolStripButton Def_PanelPrevNext;
        private ToolStripDropDownButton Main_RotateStyle;
        private ToolStripMenuItem Main_Rotate1;
        private ToolStripMenuItem Main_Rotate2;
        private ToolStripDropDownButton Ind_R2Italics;
        private ToolStripDropDownButton Ind_R1Italics;
        private ToolStripMenuItem Ind_R1Italics0;
        private ToolStripMenuItem Ind_R1Italics1;
        private ToolStripMenuItem Ind_R1Italics2;
        private ToolStripMenuItem Ind_R2Italics0;
        private ToolStripMenuItem Ind_R2Italics1;
        private ToolStripMenuItem Ind_R2Italics2;
        private Button btnToLive;
        private FlowLayoutPanel flowLayoutPanel1;
        private Button PreviewBtnVerse1;
        private Button PreviewBtnVersePreChorus2;
        private Button PreviewBtnVersePreChorus;
        private Button PreviewBtnVerse9;
        private Button PreviewBtnVerse8;
        private Button PreviewBtnVerse7;
        private Button PreviewBtnVerse6;
        private Button PreviewBtnVerse5;
        private Button PreviewBtnVerse4;
        private Button PreviewBtnVerse3;
        private Button PreviewBtnVerse2;
        private Button PreviewBtnVerseChorus;
        private Button PreviewBtnVerseChorus2;
        private Button PreviewBtnVerseBridge;
        private Button PreviewBtnVerseEnding;
        private FlowLayoutPanel flowLayoutPanel2;
        private Button OutputBtnVerse1;
        private Button OutputBtnVerse2;
        private Button OutputBtnVerse3;
        private Button OutputBtnVerse4;
        private Button OutputBtnVerse5;
        private Button OutputBtnVerse6;
        private Button OutputBtnVerse7;
        private Button OutputBtnVerse8;
        private Button OutputBtnVerse9;
        private Button OutputBtnVersePreChorus;
        private Button OutputBtnVersePreChorus2;
        private Button OutputBtnVerseChorus;
        private Button OutputBtnVerseChorus2;
        private Button OutputBtnVerseBridge;
        private Button OutputBtnVerseEnding;
        private ToolStripMenuItem CMenuSongs_Copy;
        private ToolStripSeparator toolStripSeparator10;
        private ToolStripDropDownButton PP_ListType;
        private ToolStripMenuItem PP_ListStyle;
        private ToolStripMenuItem PP_PreviewStyle;
        private ToolStripMenuItem Menu_ListingOfSelectedFolder;
        private ToolStripSeparator toolStripSeparator16;
        private ToolStripSeparator toolStripSeparator12;
        private ToolStripMenuItem CMenuFiles_Copy;
        private ToolStripSeparator toolStripSeparator25;
        private Timer TimerToFront;
        private Button PreviewBtnVerseBridge2;
        private Button OutputBtnVerseBridge2;
        private ToolStripMenuItem Menu_GoLiveWithPreview;
        private ToolStripDropDownButton Def_HeadAlign;
        private ToolStripSeparator toolStripSeparator26;
        private ToolStripMenuItem Def_HeadAlignAsR1;
        private ToolStripMenuItem Def_HeadAlignAsR2;
        private ToolStripMenuItem Def_HeadAlignLeft;
        private ToolStripMenuItem Def_HeadAlignCentre;
        private ToolStripMenuItem Def_HeadAlignRight;
        private Panel panel4;
        private ToolStrip toolStrip1;
        private ToolStripDropDownButton Ind_HeadAlign;
        private ToolStripMenuItem Ind_HeadAlignAsR1;
        private ToolStripMenuItem Ind_HeadAlignAsR2;
        private ToolStripMenuItem Ind_HeadAlignLeft;
        private ToolStripButton Ind_CapoDown;
        private ToolStripButton Ind_CapoUp;
        private ToolStripMenuItem Ind_HeadAlignCentre;
        private ToolStripMenuItem Ind_HeadAlignRight;
        private Button btnToOutputMoveNext;
        private Panel panelDefTemplate;
        private ToolStrip toolStripDefTemplates;
        private ToolStripButton Def_SaveTemplate;
        private ToolStripButton Def_LoadTemplate;
        private SaveFileDialog saveFileDialog1;
        private Panel panelIndTemplate;
        private ToolStrip toolStripIndTemplates;
        private ToolStripButton Ind_LoadTemplate;
        private ToolStripButton Ind_SaveTemplate;
        private NumericUpDown Def_PanelHeight;
        private Panel panel21;
        private ToolStrip toolStripDef7;
        private ToolStripButton Def_PanelFontBold;
        private ToolStripButton Def_PanelFontItalics;
        private ToolStripButton Def_PanelFontUnderline;
        private ToolStripButton Def_PanelFontShadow;
        private ToolStripButton Def_PanelFontOutline;
        private ToolStripComboBox Def_PanelFontList;
        private TabPage tabPowerpoint;
        private ListView PowerpointList;
        private ColumnHeader columnHeader30;
        private ColumnHeader columnHeader31;
        private ColumnHeader columnHeader32;
        private ColumnHeader columnHeader33;
        private ColumnHeader columnHeader34;
        private ColumnHeader columnHeader35;
        private ColumnHeader columnHeader36;
        private Panel panelPowerpoint1;
        private ComboBox PowerpointFolder;
        private Panel panelInfoScreen1;
        private ToolStrip InfoScreentoolstrip1;
        private ToolStripButton InfoScreen_OpenFolder;
        private TabPage tabMedia;
        private Panel panel11;
        private Panel panelMedia1;
        private ToolStrip toolStripMedia1;
        private ToolStripButton Media_OpenFolder;
        private ComboBox MediaFolder;
        private ListView MediaList;
        private ColumnHeader columnHeader37;
        private ColumnHeader columnHeader38;
        private ColumnHeader columnHeader39;
        private ColumnHeader columnHeader40;
        private ColumnHeader columnHeader41;
        private ColumnHeader columnHeader42;
        private ColumnHeader columnHeader43;
        private Panel panelImage1;
        private ToolStrip toolStripImage1;
        private ToolStripButton Image_OpenFolder;
        private ToolStripButton Image_Import;
        private ToolStripButton PP_Import;
        private ToolStripButton Media_Import;
        private ToolStripButton InfoScreen_Import;
        private Panel panelInfoScreen2;
        private ToolStrip InfoScreentoolstrip2;
        private ToolStripButton InfoScreen_New;
        private ToolStripButton InfoScreen_Edit;
        private ToolStripButton InfoScreen_Copy;
        private ToolStripButton InfoScreen_Move;
        private ToolStripButton InfoScreen_Delete;
        private Panel panelPowerpoint2;
        private ToolStrip toolStripPowerpoint2;
        private ToolStripButton Powerpoint_Edit;
        private ToolStripButton Powerpoint_Copy;
        private ToolStripButton Powerpoint_Move;
        private ToolStripButton Powerpoint_Delete;
        private ToolStripButton Main_JumpA;
        private ToolStripButton Main_JumpB;
        private ToolStripButton Main_JumpC;
        private ToolStripMenuItem Menu_ClearAllFormatting;
        private RichTextBox PreviewNotes;
        private CheckBox IndcbPreviewNotes;
        private Panel panelPreviewSessionNotes2;
        private ToolStripButton WL_Notes;
        private Label labelHideText;
        private Label labelBlackScreen;
        private ToolStripMenuItem Menu_RefreshOutput;
        private CheckBox cbOutputCam;
        private ToolStripMenuItem Menu_LiveCam;
        private Label label5;
        private Panel flowLayoutPreviewLyrics;
        private Panel flowLayoutOutputLyrics;
        private Label labelGapItem;
        private Button OutputBtnRefAlert;
        private ToolStripSeparator toolStripSeparator5;
        private ToolStripButton Ind_HideDisplayPanel;
        private Panel panelOutputLM1;
        private Button OutputBtnLMSend;
        private Button OutputBtnLMClear;
        private Panel panelOutputLM3;
        private Panel panelOutputLM2;
        private ToolStripMenuItem Menu_PreviewNotations;
        private TextBox OutputTextBoxLM;
        private ToolStripSeparator toolStripSeparator8;
        private TextBox OutputInfo;
        private ToolStripButton Main_NoRotate;
        private ToolStripMenuItem Menu_ClearRegistrySettings;
        private ToolStripSeparator toolStripSeparator9;
        private ToolStripMenuItem Menu_ImportFolder;
        private ToolStripMenuItem Main_Rotate0;
        private ToolStripMenuItem Main_Rotate3;
        private Button OutputBtnJumpToNonRotate;
        private Button OutputBtnMedia;
        private ImageList imageList1;
        private ToolStripMenuItem Menu_RestartCurrentItem;
        public FrmMain()
        {
            this.InitializeComponent();
            if (!gf.InitEasiSlidesDir())
            {
                gf.SplashScreenCanClose = true;
                base.Close();
            }
            else
            {
                if (!this.InitFormControls())
                {
                    gf.SplashScreenCanClose = true;
                    base.Close();
                }
            }
        }
        private void FrmMain_Load(object sender, EventArgs e)
        {
            gf.WMP_Present = this.DShowPlayerPresent();
            if (this.WorshipListItems.Items.Count > 0)
            {
                this.WorshipListIndexChanged(0, true);
            }
            this.LiveShow.OnMessage += new FrmLaunchShow.Message(this.LiveShow_OnMessage);
            this.MainPPT.Init();
            this.TimerToFront.Start();
            gf.SplashScreenCanClose = true;
        }
        private void LiveShow_OnMessage(int MsgCode, string MsgString)
        {
            switch (MsgCode)
            {
                case 7:
                    this.Remote_SongChanged();
                    break;
                case 8:
                    this.Remote_MovedToGapItem();
                    break;
                case 9:
                    this.Remote_SlideChanged();
                    break;
                case 10:
                    this.Remote_EndShow();
                    break;
            }
        }
        private void FrmMain_Resize(object sender, EventArgs e)
        {
            if (this.FormFirstLoad)
            {
                if (base.WindowState == FormWindowState.Maximized)
                {
                    this.ApplySplitterValues();
                    this.FormFirstLoad = false;
                }
            }
        }
        private void ApplySplitterValues()
        {
            int num = gf.GetRegValue("settings", this.Splitter_FolderWidth, 230);
            if (num < 25 || num > 1500)
            {
                num = 230;
            }
            this.splitContainerMain.SplitterDistance = num;
            num = gf.GetRegValue("settings", this.Splitter_OutputWidth, 250);
            if (num < 25 || num > 1500)
            {
                num = 250;
            }
            this.splitContainer2.SplitterDistance = num;
            num = gf.GetRegValue("settings", this.Splitter_FolderHeight, 250);
            if (num < 25 || num > 1500)
            {
                num = 250;
            }
            this.splitContainer1.SplitterDistance = num;
            num = gf.GetRegValue("settings", this.Splitter_PreviewLyricsHeight, 250);
            if (num < 25 || num > 1500)
            {
                num = 250;
            }
            this.splitContainerPreview.SplitterDistance = num;
            num = gf.GetRegValue("settings", this.Splitter_outputLyricsHeight, 250);
            if (num < 25 || num > 1500)
            {
                num = 250;
            }
            this.splitContainerOutput.SplitterDistance = num;
        }
        private bool InitFormControls()
        {
            gf.ShowTaskBar();
            int num = gf.GetRegValue("settings", "MainLeft", -1);
            int num2 = gf.GetRegValue("settings", "MainTop", -1);
            int num3 = gf.GetRegValue("settings", "MainWidth", 720);
            int num4 = gf.GetRegValue("settings", "MainHeight", 560);
            if (num3 > Screen.PrimaryScreen.Bounds.Width)
            {
                num3 = Screen.PrimaryScreen.Bounds.Width - 20;
            }
            if (num4 > Screen.PrimaryScreen.Bounds.Height)
            {
                num4 = Screen.PrimaryScreen.Bounds.Height - 30;
            }
            if (num < 0)
            {
                num = 0;
            }
            if (num2 < 0)
            {
                num2 = 0;
            }
            if (num + num3 > Screen.PrimaryScreen.Bounds.Width)
            {
                num = Screen.PrimaryScreen.Bounds.Width - num3;
            }
            if (num2 + num4 > Screen.PrimaryScreen.Bounds.Height)
            {
                num2 = Screen.PrimaryScreen.Bounds.Height - num4;
            }
            base.Left = num;
            base.Top = num2;
            base.Height = num4;
            base.Width = num3;
            this.frmLeft = num;
            this.frmTop = num2;
            this.frmHeight = num4;
            this.frmWidth = num3;
            if (gf.GetRegValue("settings", "MainMax", 0) > 0)
            {
                base.WindowState = FormWindowState.Maximized;
            }
            else
            {
                this.ApplySplitterValues();
            }
            this.DefPanel.Dock = DockStyle.Fill;
            this.IndPanel.Dock = DockStyle.Fill;
            this.PreviewInfo.Dock = DockStyle.Fill;
            this.IndradioButtonText.Checked = true;
            this.PreviewScreen.Parent = this.PreviewHolder;
            this.PreviewScreen.Dock = DockStyle.Fill;
            this.OutputScreen.Parent = this.OutputHolder;
            this.OutputScreen.Dock = DockStyle.Fill;
            this.panelPreviewSessionNotes2.Dock = DockStyle.Fill;
            this.PreviewNotes.Dock = DockStyle.Fill;
            this.panelPreviewSessionNotes2.Visible = false;
            this.flowLayoutExternalPowerPoint.Dock = DockStyle.Fill;
            this.flowLayoutImages.Dock = DockStyle.Fill;
            this.flowLayoutPreviewPowerPoint.Dock = DockStyle.Fill;
            this.flowLayoutOutputPowerPoint.Dock = DockStyle.Fill;
            this.flowLayoutPreviewLyrics.Dock = DockStyle.Fill;
            this.flowLayoutOutputLyrics.Dock = DockStyle.Fill;
            this.BuildPreviewScreenHandler();
            this.flowLayoutPreviewPowerPoint.Visible = false;
            this.flowLayoutOutputPowerPoint.Visible = false;
            this.flowLayoutPreviewLyrics.Visible = true;
            this.flowLayoutOutputLyrics.Visible = true;
            this.SingleMonIcon = (Bitmap)this.imageList1.Images[15];
            this.DualMonIcon = (Bitmap)this.imageList1.Images[14];
            this.Keyboard1Icon = (Bitmap)this.imageList1.Images[16];
            this.SetPreviewAreas();
            gf.BuildFontsList(ref this.Ind_Reg1FontsList);
            gf.BuildFontsList(ref this.Ind_Reg2FontsList);
            gf.BuildFontsList(ref this.Def_PanelFontList);
            this.PreviewScreen.BuildTransitionsList(ref this.Def_TransItem);
            this.PreviewScreen.BuildTransitionsList(ref this.Def_TransSlides);
            this.PreviewScreen.BuildTransitionsList(ref this.Ind_TransItem);
            this.PreviewScreen.BuildTransitionsList(ref this.Ind_TransSlides);
            bool result;
            if (!gf.InitAppData())
            {
                result = false;
            }
            else
            {
                this.ApplyUseSongNumbers(gf.UseSongNumbers);
                this.BuildFolderList();
                this.SetJumpToolTips();
                this.SetMainDefaultBackScreen();
                this.PopulatePraiseBooksList();
                this.PraiseBook.Text = "";
                gf.NormalTextRegionBackColour = this.SongFolder.BackColor;
                this.PopulateWorshipList();
                this.ApplyWorshipMode();
                this.SetItemFontSettings(ref gf.PreviewItem);
                this.ResetMainPictureBox(ref gf.OutputItem);
                this.BuildPicturesFolderList();
                this.BuildInfoScreenFolderList();
                this.BuildMediaFolderList();
                this.SetPowerpointListingButton();
                this.SetTabsVisibility();
                gf.LoadBibleVersions(ref this.TabBibleVersions);
                this.TabBibleVersionsChanged();
                this.InitFormLoad = false;
                this.BuildVerseButtons(gf.PreviewItem, true);
                this.BuildVerseButtons(gf.OutputItem, true);
                this.TimerFlasher.Enabled = true;
                this.DefaultButtonForeColour = this.btnToOutput.ForeColor;
                this.PreviewScreen.AllowDrop = true;
                this.BuildEditHistoryMenuItems();
                this.EnableEditHistory();
                this.SetAutoRotateButtons();
                this.PreviewNotations(gf.PreviewArea_ShowNotations);
                this.SetNotesPreview(false);
                this.AlertWindow.OnMessage += new FrmShowAlert.Message(this.AlertWindow_OnMessage);
                this.popupHelper = new PopupWindowHelper();
                this.popupHelper.PopupClosed += new PopupClosedEventHandler(this.popupHelper_PopupClosed);
                gf.SplashUp = false;
                this.Text = "EasiSlides" + ((gf.UserString != "") ? (" - " + gf.UserString) : "");
                result = true;
            }
            return result;
        }
        private void AlertWindow_OnMessage(int MsgCode, string MsgString)
        {
            switch (MsgCode)
            {
                case 0:
                    gf.MessageAlertRequested = true;
                    if (!gf.ShowRunning)
                    {
                        this.GoLive(true);
                    }
                    else
                    {
                        this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_MessageAlertRequested);
                    }
                    break;
                case 1:
                    gf.ParentalAlertRequested = true;
                    if (!gf.ShowRunning)
                    {
                        this.GoLive(true);
                    }
                    else
                    {
                        this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_ParentalAlertRequested);
                    }
                    break;
                case 2:
                    gf.LyricsAlertRequested = true;
                    if (gf.ShowRunning)
                    {
                        this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_LyricsAlertShow);
                    }
                    break;
            }
        }
        private void panelPreviewTop_Resize(object sender, EventArgs e)
        {
            this.PreviewPanelDisplayName.Columns[0].Width = this.PreviewPanelDisplayName.Width - 5;
            int num = this.panelPreviewTop.Width - this.IndgroupBox1.Width;
            num = ((num > 0) ? (num / 2) : 0);
            this.IndgroupBox1.Left = num;
            this.IndgroupBox2.Left = num;
            this.IndgroupBox3.Left = num;
            this.IndgroupBox4.Left = num;
            this.Ind_checkBox.Left = num;
            this.panelIndTemplate.Left = this.Ind_checkBox.Left + this.Ind_checkBox.Width + 4;
            this.ResizePreviewRichTextBox();
            if (this.flowLayoutPreviewPowerPoint.Visible)
            {
                this.SetPreviewPPThumbImages(gf.PreviewItem.CurSlide);
            }
        }
        private void panelPreviewBottom_Resize(object sender, EventArgs e)
        {
            this.ResizeSampleScreen(this.panelPreviewBottom, this.PreviewHolder, this.PreviewBack, false);
        }
        private void panelOutputTop_Resize(object sender, EventArgs e)
        {
            this.OutputPanelDisplayName.Columns[0].Width = this.OutputPanelDisplayName.Width - 5;
            this.ResizeOutputRichTextBox();
            if (this.flowLayoutOutputPowerPoint.Visible)
            {
                this.SetOutputPPThumbImages(gf.OutputItem.CurSlide);
            }
        }
        private void panelOutputBottom_Resize(object sender, EventArgs e)
        {
            this.ResizeOutputBottomPanel();
        }
        private void ResizeOutputBottomPanel()
        {
            this.ResizeSampleScreen(this.panelOutputBottom, this.OutputHolder, this.OutputBack, gf.ShowLyricsMonitorAlertBox);
        }
        private void ResizeSampleScreen(Panel InPanelContainer, Panel InHolder, Panel InBack, bool AdjustForIndicator)
        {
            int num = InPanelContainer.Width;
            if (num < 0)
            {
                num = 0;
            }
            int num2 = 0;
            int num3 = AdjustForIndicator ? this.panelOutputLM1.Height : 0;
            int num4 = 15;
            int num5 = num * 18 / 20;
            int num6 = ((num5 > 0) ? num5 : 1) * 3 / 4;
            if (num6 > InPanelContainer.Height - (num2 + num3 + num4))
            {
                num6 = InPanelContainer.Height - (num2 + num3 + num4);
                num6 = ((num6 > 0) ? num6 : 1);
                num5 = num6 * 4 / 3;
            }
            InHolder.Left = (InPanelContainer.Width - num5 - num6 / 40) / 2;
            InHolder.Height = num6;
            InHolder.Width = num5;
            InHolder.Top = (InPanelContainer.Height - (num3 + num6)) / 2;
            if (InHolder.Top < num2 + 2 & num2 > 0)
            {
                InHolder.Top = num2 + 2;
            }
            if (num6 > 0)
            {
                InBack.Left = InHolder.Left + num6 / 40 + 1;
                InBack.Top = InHolder.Top + num6 / 40 + 1;
                InBack.Height = num6;
                InBack.Width = num5;
            }
            else
            {
                InBack.Height = 0;
                InBack.Width = 0;
            }
            this.SetStatusbarSize();
        }
        private void OldResizeSampleScreen(Panel InPanelContainer, Panel InHolder, Panel InBack, bool AdjustForIndicator)
        {
            int num = InPanelContainer.Height - (AdjustForIndicator ? this.labelBlackScreen.Height : 0);
            if (num < 0)
            {
                num = 0;
            }
            int num2 = num * 18 / 20;
            int num3 = ((num2 > 0) ? num2 : 1) * 4 / 3;
            if (num3 > InPanelContainer.Width - 40)
            {
                num3 = InPanelContainer.Width - 40;
                num3 = ((num3 > 0) ? num3 : 1);
                num2 = num3 * 3 / 4;
            }
            InHolder.Left = (InPanelContainer.Width - num3 - num2 / 40) / 2;
            InHolder.Height = num2;
            InHolder.Width = num3;
            InHolder.Top = (AdjustForIndicator ? this.labelBlackScreen.Height : 0) + (int)((double)(num - InHolder.Height) / 2.5) + num / 60;
            if (num2 > 0)
            {
                InBack.Left = InHolder.Left + num2 / 40 + 1;
                InBack.Top = InHolder.Top + num2 / 40 + 1;
                InBack.Height = num2;
                InBack.Width = num3;
            }
            else
            {
                InBack.Height = 0;
                InBack.Width = 0;
            }
            this.SetStatusbarSize();
        }
        private void IndradioButtonTextFormatInfo_Click(object sender, EventArgs e)
        {
            this.SetPreviewAreas();
        }
        private void SetPreviewAreas()
        {
            this.flowLayoutPreviewLyrics.Visible = this.IndradioButtonText.Checked;
            this.IndPanel.Visible = this.IndradioButtonFormat.Checked;
            this.PreviewInfo.Visible = this.IndradioButtonInfo.Checked;
            this.IndradioButtonText.ForeColor = (this.IndradioButtonText.Checked ? gf.ButtonPressedForeColour : gf.ButtonDefaultForeColour);
            this.IndradioButtonFormat.ForeColor = (this.IndradioButtonFormat.Checked ? gf.ButtonPressedForeColour : gf.ButtonDefaultForeColour);
            this.IndradioButtonInfo.ForeColor = (this.IndradioButtonInfo.Checked ? gf.ButtonPressedForeColour : gf.ButtonDefaultForeColour);
            if (this.IndradioButtonText.Checked)
            {
                this.ApplyPreviewArea_Setup(0);
            }
            this.FocusPreviewArea();
        }
        private void IndcbPreviewNotes_Click(object sender, EventArgs e)
        {
            this.SetNotesPreview(this.IndcbPreviewNotes.Checked);
        }
        private void SetNotesPreview(bool NotesChecked)
        {
            this.panelPreviewSessionNotes2.Visible = NotesChecked;
        }
        private void FocusPreviewArea()
        {
            this.HighlightPreviewRichTextBox(true, true);
            base.Focus();
        }
        private void FocusOutputArea()
        {
            this.OutputInfo.Focus();
            this.HighlightOutputRichTextBox(true, true);
            base.Focus();
        }
        private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!this.ForceFormClose)
            {
                try
                {
                    if (this.SaveToRegistryOnClosing)
                    {
                        this.SaveFormStateToRegistry();
                    }
                    gf.DeleteFolderFiles(gf.EasiSlidesTempDir);
                    gf.ClearUpPowerpointWindows();
                }
                catch
                {
                }
            }
        }
        private void SaveFormStateToRegistry()
        {
            switch (base.WindowState)
            {
                case FormWindowState.Normal:
                    gf.SaveRegValue("settings", "MainMax", 0);
                    gf.SaveRegValue("settings", "MainLeft", base.Left);
                    gf.SaveRegValue("settings", "MainTop", base.Top);
                    gf.SaveRegValue("settings", "MainWidth", base.Width);
                    gf.SaveRegValue("settings", "MainHeight", base.Height);
                    break;
                case FormWindowState.Minimized:
                    gf.SaveConfigSettings();
                    return;
                case FormWindowState.Maximized:
                    gf.SaveRegValue("settings", "MainMax", 1);
                    gf.SaveRegValue("settings", "MainLeft", base.RestoreBounds.Left);
                    gf.SaveRegValue("settings", "MainTop", base.RestoreBounds.Top);
                    gf.SaveRegValue("settings", "MainWidth", base.RestoreBounds.Width);
                    gf.SaveRegValue("settings", "MainHeight", base.RestoreBounds.Height);
                    break;
            }
            gf.SaveRegValue("settings", this.Splitter_FolderWidth, this.splitContainerMain.SplitterDistance);
            gf.SaveRegValue("settings", this.Splitter_OutputWidth, this.splitContainer2.SplitterDistance);
            gf.SaveRegValue("settings", this.Splitter_FolderHeight, this.splitContainer1.SplitterDistance);
            gf.SaveRegValue("settings", this.Splitter_PreviewLyricsHeight, this.splitContainerPreview.SplitterDistance);
            gf.SaveRegValue("settings", this.Splitter_outputLyricsHeight, this.splitContainerOutput.SplitterDistance);
            gf.SaveConfigSettings();
        }
        private void tabControlSource_Resize(object sender, EventArgs e)
        {
            this.ResizetabControlSouceItems();
        }
        private void tabControlLists_Resize(object sender, EventArgs e)
        {
            this.ResizetabControlLists();
        }
        private void ResizetabControlSouceItems()
        {
            this.ResizeTabList(this.tabControlSource, this.SongsList, false);
            this.ResizeTabList(this.tabControlSource, this.InfoScreenList, true);
            this.ResizeTabList(this.tabControlSource, this.PowerpointList, true);
            this.ResizeTabList(this.tabControlSource, this.MediaList, false);
            this.RelocateRightToolBar(this.InfoScreenList, ref this.panelInfoScreen2);
            this.RelocateRightToolBar(this.PowerpointList, ref this.panelPowerpoint2);
            this.SetSongListColWidth();
            this.SetInfoScreenListColWidth();
            this.SetMediaListColWidth();
            this.SetPowerpointListColWidth();
            this.ResizeComboAndToolBar(this.tabControlSource, ref this.SongFolder, ref this.panelFolders);
            this.ResizeComboAndToolBar(this.tabControlSource, ref this.InfoScreenFolder, ref this.panelInfoScreen1);
            this.ResizeComboAndToolBar(this.tabControlSource, ref this.MediaFolder, ref this.panelMedia1);
            this.ResizeComboAndToolBar(this.tabControlSource, ref this.PowerpointFolder, ref this.panelExternalFiles1);
            this.ResizeComboAndToolBar(this.tabControlSource, ref this.ImagesFolder, ref this.panelImage1);
            if (this.tabControlSource.SelectedTab != null && this.tabControlSource.SelectedTab.Name == "tabImages")
            {
                this.LoadBackgroundThumbImages();
            }
            else
            {
                gf.TabSourceImagesChanged = true;
            }
            if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint") && gf.PowerpointListingStyle > 0)
            {
                this.LoadExternalPowerpointThumbImages(0);
                gf.TabSourceExternalFilesChanged = false;
            }
            if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
            {
                gf.TabSourceExternalFilesChanged = true;
            }
            int num = this.tabControlSource.Width * 7 / 12;
            num = ((num < 60) ? 60 : num);
            this.BookLookup.Width = num;
            this.BibleUserLookup.Left = this.BookLookup.Left + this.BookLookup.Width + 2;
            num = this.tabControlSource.Width - (this.BibleUserLookup.Left + 12);
            if (num > 0)
            {
                if (num < 40)
                {
                    this.BibleUserLookup.Width = num;
                }
                else
                {
                    if (num < 40 + this.panelBible2.Width)
                    {
                        this.BibleUserLookup.Width = 40;
                    }
                    else
                    {
                        this.BibleUserLookup.Width = num - this.panelBible2.Width;
                    }
                }
            }
            else
            {
                this.BibleUserLookup.Width = 0;
            }
            this.panelBible2.Left = this.BibleUserLookup.Left + this.BibleUserLookup.Width + 2;
            this.BibleText.Width = this.tabControlSource.Width - 15;
            this.BibleText.Height = this.tabControlSource.Height - 80;
            this.TabBibleVersions.Left = this.BibleText.Left;
            this.TabBibleVersions.Top = this.BibleText.Top + this.BibleText.Height;
            this.TabBibleVersions.Width = this.BibleText.Width;
            int num2 = this.tabControlSource.Width - this.DefgroupBox1.Width;
            num2 = ((num2 > 0) ? (num2 / 2) : 0);
            this.DefApplyDefaultsBtn.Left = num2;
            this.panelDefTemplate.Left = this.DefApplyDefaultsBtn.Left + this.DefApplyDefaultsBtn.Width;
            this.DefgroupBox1.Left = num2;
            this.DefgroupBox2.Left = num2;
            this.DefgroupBox3.Left = num2;
        }
        private void SetSongListColWidth()
        {
            if (this.SongsList.Columns.Count > 0)
            {
                this.SongsList.Columns[0].Width = ((this.SongsList.Width - this.SongsList.Columns[4].Width - 25 >= 0) ? (this.SongsList.Width - this.SongsList.Columns[4].Width - 25) : 0);
            }
        }
        private void SetInfoScreenListColWidth()
        {
            if (this.InfoScreenList.Columns.Count > 0)
            {
                this.InfoScreenList.Columns[0].Width = ((this.InfoScreenList.Width - 25 >= 0) ? (this.InfoScreenList.Width - 25) : 0);
            }
        }
        private void SetMediaListColWidth()
        {
            if (this.MediaList.Columns.Count > 0)
            {
                this.MediaList.Columns[0].Width = ((this.MediaList.Width - 25 >= 0) ? (this.MediaList.Width - 25) : 0);
            }
        }
        private void SetPowerpointListColWidth()
        {
            if (this.PowerpointList.Columns.Count > 0)
            {
                this.PowerpointList.Columns[0].Width = ((this.PowerpointList.Width - 25 >= 0) ? (this.PowerpointList.Width - 25) : 0);
            }
        }
        private void ResizetabControlLists()
        {
            this.ResizeTabList(this.tabControlLists, this.WorshipListItems, true);
            this.ResizeComboAndToolBar(this.tabControlLists, ref this.SessionList, ref this.panelWorshipList1);
            this.RelocateRightToolBar(this.WorshipListItems, ref this.panelWorshipList2);
            this.ResizeTabList(this.tabControlLists, this.PraiseBookItems, true);
            this.ResizeComboAndToolBar(this.tabControlLists, ref this.PraiseBook, ref this.panelPraiseBook1);
            this.RelocateRightToolBar(this.PraiseBookItems, ref this.panelPraiseBook2);
            this.SetWorshipPraiseListColWidth();
        }
        private void ResizeTabList(TabControl InTabControl, ListView InList, bool ToolBarMargin)
        {
            InList.Height = InTabControl.Height - 58;
            InList.Width = InTabControl.Width - (ToolBarMargin ? 42 : 15);
            InList.Width = ((InList.Width < 60) ? 60 : InList.Width);
        }
        private void ResizeComboAndToolBar(TabControl InTabControl, ref ComboBox InCombo)
        {
            Panel panel = new Panel();
            panel.Width = 0;
            panel.Height = 1;
            this.ResizeComboAndToolBar(InTabControl, ref InCombo, ref panel);
        }
        private void ResizeComboAndToolBar(TabControl InTabControl, ref ComboBox InCombo, ref Panel InToolBarPanel)
        {
            InCombo.Width = InTabControl.Width - (InToolBarPanel.Width + 15);
            InCombo.Width = ((InCombo.Width < 60) ? 60 : InCombo.Width);
            InToolBarPanel.Left = InCombo.Left + InCombo.Width + 1;
        }
        private void RelocateRightToolBar(ListView InListView, ref Panel InToolBarPanel)
        {
            InToolBarPanel.Left = InListView.Left + InListView.Width + 3;
        }
        private void SetAutoRotateButtons()
        {
            string name;
            if (gf.AutoRotateStyle == 0)
            {
                name = this.Main_Rotate0.Name;
            }
            else
            {
                if (gf.AutoRotateStyle == 1)
                {
                    name = this.Main_Rotate1.Name;
                }
                else
                {
                    if (gf.AutoRotateStyle == 2)
                    {
                        name = this.Main_Rotate2.Name;
                    }
                    else
                    {
                        name = this.Main_Rotate3.Name;
                    }
                }
            }
            gf.AssignDropDownItem(ref this.Main_RotateStyle, name, this.Main_Rotate0, this.Main_Rotate1, this.Main_Rotate2, this.Main_Rotate3);
            this.Main_NoRotate.Checked = !gf.AutoRotateOn;
        }
        private void UpdateDefaultFields()
        {
            string name;
            if (gf.ShowSongHeadings == 0)
            {
                name = this.Def_HeadNoTitles.Name;
            }
            else
            {
                if (gf.ShowSongHeadings == 1)
                {
                    name = this.Def_HeadAllTitles.Name;
                }
                else
                {
                    name = this.Def_HeadFirstScreen.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Def_Head, name, this.Def_HeadNoTitles, this.Def_HeadAllTitles, this.Def_HeadFirstScreen);
            if (gf.ShowSongHeadingsAlign == 1)
            {
                name = this.Def_HeadAlignAsR2.Name;
            }
            else
            {
                if (gf.ShowSongHeadingsAlign == 2)
                {
                    name = this.Def_HeadAlignLeft.Name;
                }
                else
                {
                    if (gf.ShowSongHeadingsAlign == 3)
                    {
                        name = this.Def_HeadAlignCentre.Name;
                    }
                    else
                    {
                        if (gf.ShowSongHeadingsAlign == 4)
                        {
                            name = this.Def_HeadAlignRight.Name;
                        }
                        else
                        {
                            name = this.Def_HeadAlignAsR1.Name;
                        }
                    }
                }
            }
            gf.AssignDropDownItem(ref this.Def_HeadAlign, name, this.Def_HeadAlignAsR1, this.Def_HeadAlignAsR2, this.Def_HeadAlignLeft, this.Def_HeadAlignCentre, this.Def_HeadAlignRight);
            this.Def_Shadow.Checked = (gf.UseShadowFont == 1);
            this.Def_Outline.Checked = (gf.UseOutlineFont == 1);
            if (gf.ShowLyrics == 0)
            {
                name = this.Def_ShowRegion1.Name;
            }
            else
            {
                if (gf.ShowLyrics == 1)
                {
                    name = this.Def_ShowRegion2.Name;
                }
                else
                {
                    name = this.Def_ShowRegionBoth.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Def_Region, name, this.Def_ShowRegion1, this.Def_ShowRegion2, this.Def_ShowRegionBoth);
            if (gf.ShowVerticalAlign == 0)
            {
                name = this.Def_VAlignTop.Name;
            }
            else
            {
                if (gf.ShowVerticalAlign == 1)
                {
                    name = this.Def_VAlignCentre.Name;
                }
                else
                {
                    name = this.Def_VAlignBottom.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Def_VAlign, name, this.Def_VAlignTop, this.Def_VAlignCentre, this.Def_VAlignBottom);
            this.Def_Interlace.Checked = (gf.ShowInterlace == 1);
            this.Def_Notations.Checked = (gf.ShowNotations == 1);
            this.Def_ToZero.Checked = (gf.ShowCapoZero == 1);
            if (gf.BackgroundMode == gf.ImageMode.Tile)
            {
                name = this.Def_ImageTile.Name;
            }
            else
            {
                if (gf.BackgroundMode == gf.ImageMode.Centre)
                {
                    name = this.Def_ImageCentre.Name;
                }
                else
                {
                    name = this.Def_ImageBestFit.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Def_ImageMode, name, this.Def_ImageTile, this.Def_ImageCentre, this.Def_ImageBestFit);
            this.UpdateDefaultNoImageButton();
            if (gf.ShowFontAlign[0, 0] == 1)
            {
                name = this.Def_R1AlignLeft.Name;
            }
            else
            {
                if (gf.ShowFontAlign[0, 0] == 2)
                {
                    name = this.Def_R1AlignCentre.Name;
                }
                else
                {
                    name = this.Def_R1AlignRight.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Def_R1Align, name, this.Def_R1AlignLeft, this.Def_R1AlignCentre, this.Def_R1AlignRight);
            if (gf.ShowFontAlign[0, 1] == 1)
            {
                name = this.Def_R2AlignLeft.Name;
            }
            else
            {
                if (gf.ShowFontAlign[0, 1] == 2)
                {
                    name = this.Def_R2AlignCentre.Name;
                }
                else
                {
                    name = this.Def_R2AlignRight.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Def_R2Align, name, this.Def_R2AlignLeft, this.Def_R2AlignCentre, this.Def_R2AlignRight);
            this.Def_BackColour.ForeColor = gf.ShowScreenColour[0];
            this.Def_R1Colour.ForeColor = gf.ShowFontColour[0];
            this.Def_R2Colour.ForeColor = gf.ShowFontColour[1];
            this.UpdatingDefaultFields = true;
            this.Def_TransItem.SelectedIndex = gf.ShowItemTransition;
            this.Def_TransSlides.SelectedIndex = gf.ShowSlideTransition;
            this.AssignMediaText(ref this.Def_AssignMedia, gf.MediaOption);
            this.UpdatingDefaultFields = false;
        }
        private void UpdateDefaultNoImageButton()
        {
            if (gf.BackgroundPicture != "")
            {
                this.Def_NoImage.Enabled = true;
                this.Def_NoImage.ToolTipText = "Remove Default Background '" + gf.BackgroundPicture + "'";
            }
            else
            {
                this.Def_NoImage.ToolTipText = "No Default Background";
                this.Def_NoImage.Enabled = false;
            }
        }
        private void UpdateDisplayPanelFields()
        {
            this.Def_PanelTransparent.Checked = (gf.PanelBackColourTransparent > 0);
            this.Def_PanelAsR1.Checked = (gf.PanelTextColourAsRegion1 > 0);
            this.Def_PanelShow.Checked = (gf.ShowDataDisplayMode > 0);
            this.Def_PanelSong.Checked = (gf.ShowDataDisplaySongs > 0);
            this.Def_PanelSlides.Checked = (gf.ShowDataDisplaySlides > 0);
            this.Def_PanelTitle.Checked = (gf.ShowDataDisplayTitle > 0);
            this.Def_PanelCopyright.Checked = (gf.ShowDataDisplayCopyright > 0);
            this.Def_PanelPrevNext.Checked = (gf.ShowDataDisplayPrevNext > 0);
            this.Def_PanelFontBold.Checked = (gf.ShowDataDisplayFontBold > 0);
            this.Def_PanelFontItalics.Checked = (gf.ShowDataDisplayFontItalic > 0);
            this.Def_PanelFontUnderline.Checked = (gf.ShowDataDisplayFontUnderline > 0);
            this.Def_PanelFontShadow.Checked = (gf.ShowDataDisplayFontShadow > 0);
            this.Def_PanelFontOutline.Checked = (gf.ShowDataDisplayFontOutline > 0);
            int num = (int)(gf.BottomBorderFactor * 100.0);
            if (num < 6 || num > 20)
            {
            }
            this.Def_PanelHeight.Value = (int)(gf.BottomBorderFactor * 100.0);
            this.Def_PanelFontOutline.Checked = (gf.ShowDataDisplayFontOutline > 0);
            this.Def_PanelTextColour.ForeColor = gf.PanelTextColour;
            this.Def_PanelBackColour.ForeColor = gf.PanelBackColour;
            this.Def_PanelFontList.Text = gf.ShowDataDisplayFontName;
        }
        private void UpdateDisplayPanelData(bool RefreshSlides)
        {
            this.SaveWorshipList();
            if (gf.PreviewItem.ItemID != "")
            {
                this.RefreshSlidesFonts(ref gf.PreviewItem, ImageTransitionControl.TransitionAction.None);
            }
            if (gf.OutputItem.ItemID != "")
            {
                this.RefreshSlidesFonts(ref gf.OutputItem, ImageTransitionControl.TransitionAction.None);
            }
            if (gf.ShowRunning)
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_FormatChanged);
                if (RefreshSlides)
                {
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_FormatChanged);
                }
                else
                {
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_PanelChanged);
                }
            }
        }
        private void DefApplyDefaultsBtn_Click(object sender, EventArgs e)
        {
            if (this.WorshipListItems.Items.Count > 0)
            {
                for (int i = 0; i < this.WorshipListItems.Items.Count; i++)
                {
                    if (gf.Left(this.WorshipListItems.Items[i].SubItems[1].Text, 1) != "I")
                    {
                        this.WorshipListItems.Items[i].SubItems[2].Text = "";
                    }
                }
            }
            this.Ind_checkBox.Checked = false;
            this.ApplyDefaultData(true);
        }
        private void ApplyDefaultData(bool StartAtFirstSlide)
        {
            this.ApplyDefaultData(StartAtFirstSlide, ImageTransitionControl.TransitionAction.None);
        }
        private void ApplyDefaultData(bool StartAtFirstSlide, ImageTransitionControl.TransitionAction TransitionAction)
        {
            if (this.Ind_checkBox.Checked)
            {
                this.ApplyIndividualFormat(ref gf.PreviewItem);
            }
            else
            {
                this.NoIndividualFormat();
            }
            this.SaveWorshipList();
            gf.SetShowBackground(gf.PreviewItem, ref this.PreviewScreen);
            if (gf.PreviewItem.ItemID != "")
            {
                if (StartAtFirstSlide)
                {
                    gf.PreviewItem.CurSlide = 1;
                }
                this.RefreshSlidesFonts(ref gf.PreviewItem, TransitionAction);
                this.ApplyLyricsRichTextBoxFont(0);
            }
            else
            {
                this.ResetMainPictureBox(ref gf.PreviewItem);
            }
            if (gf.OutputItem.UseDefaultFormat)
            {
                if (gf.OutputItem.ItemID != "")
                {
                    if (StartAtFirstSlide)
                    {
                        gf.OutputItem.CurSlide = 1;
                    }
                    if (gf.ShowRunning)
                    {
                        if (StartAtFirstSlide)
                        {
                            gf.MainAction_SongChanged_Transaction = TransitionAction;
                            this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SongChanged);
                        }
                        else
                        {
                            gf.MainAction_SongChanged_Transaction = TransitionAction;
                            this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SongChanged);
                        }
                    }
                    this.RefreshSlidesFonts(ref gf.OutputItem, TransitionAction);
                    this.ApplyLyricsRichTextBoxFont(1);
                }
            }
        }
        private bool RefreshSlidesFonts(ref gf.SongSettings InItem)
        {
            return this.RefreshSlidesFonts(ref InItem, ImageTransitionControl.TransitionAction.AsStored);
        }
        private bool RefreshSlidesFonts(ref gf.SongSettings InItem, ImageTransitionControl.TransitionAction TransitionAction)
        {
            this.SetItemFontSettings(ref InItem);
            gf.FormatDisplayLyrics(ref InItem, true, true);
            return this.ShowSlide(ref InItem, TransitionAction);
        }
        private void Def_Items_MouseUp(object sender, MouseEventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            if (name == "Def_LoadTemplate")
            {
                this.LoadWorshipListTemplate();
            }
            else
            {
                if (name == "Def_SaveTemplate")
                {
                    this.SaveWorshipListTemplate(gf.WorshipDir + gf.CurSession + ".est", gf.WorshipTemplatesDir);
                }
                else
                {
                    if (name == "Def_Shadow")
                    {
                        gf.UseShadowFont = (toolStripButton.Checked ? 1 : 0);
                        this.ApplyDefaultData(false);
                    }
                    else
                    {
                        if (name == "Def_Outline")
                        {
                            gf.UseOutlineFont = (toolStripButton.Checked ? 1 : 0);
                            this.ApplyDefaultData(false);
                        }
                        else
                        {
                            if (name == "Def_Interlace")
                            {
                                gf.ShowInterlace = (toolStripButton.Checked ? 1 : 0);
                                this.ApplyDefaultData(false);
                            }
                            else
                            {
                                if (name == "Def_Notations")
                                {
                                    gf.ShowNotations = (toolStripButton.Checked ? 1 : 0);
                                    this.ApplyDefaultData(true);
                                }
                                else
                                {
                                    if (name == "Def_ToZero")
                                    {
                                        gf.ShowCapoZero = (toolStripButton.Checked ? 1 : 0);
                                        this.ApplyDefaultData(true);
                                    }
                                    else
                                    {
                                        if (name == "Def_R1Colour")
                                        {
                                            if (gf.SelectColorFromBtn(ref this.Def_R1Colour, ref gf.ShowFontColour[0]))
                                            {
                                                this.ApplyDefaultData(false);
                                            }
                                        }
                                        else
                                        {
                                            if (name == "Def_R2Colour")
                                            {
                                                if (gf.SelectColorFromBtn(ref this.Def_R2Colour, ref gf.ShowFontColour[1]))
                                                {
                                                    this.ApplyDefaultData(false);
                                                }
                                            }
                                            else
                                            {
                                                if (name == "Def_NoImage")
                                                {
                                                    this.Def_SetNoImage();
                                                }
                                                else
                                                {
                                                    if (name == "Def_BackColour")
                                                    {
                                                        if (gf.SelectBackgroundColours(ref this.Def_BackColour, ref gf.ShowScreenColour[0], ref gf.ShowScreenColour[1], ref gf.ShowScreenStyle, true))
                                                        {
                                                            this.SetMainDefaultBackScreen();
                                                            this.Def_SetNoImage();
                                                        }
                                                    }
                                                    else
                                                    {
                                                        if (name == "Def_AssignMedia")
                                                        {
                                                            this.Def_Media_Clicked();
                                                        }
                                                        else
                                                        {
                                                            if (name == "Def_PanelAsR1")
                                                            {
                                                                gf.PanelTextColourAsRegion1 = (toolStripButton.Checked ? 1 : 0);
                                                                this.UpdateDisplayPanelData(false);
                                                            }
                                                            else
                                                            {
                                                                if (name == "Def_PanelTextColour")
                                                                {
                                                                    if (gf.SelectColorFromBtn(ref this.Def_PanelTextColour, ref gf.PanelTextColour))
                                                                    {
                                                                        this.UpdateDisplayPanelData(false);
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    if (name == "Def_PanelTransparent")
                                                                    {
                                                                        gf.PanelBackColourTransparent = (toolStripButton.Checked ? 1 : 0);
                                                                        this.UpdateDisplayPanelData(false);
                                                                    }
                                                                    else
                                                                    {
                                                                        if (name == "Def_PanelBackColour")
                                                                        {
                                                                            if (gf.SelectColorFromBtn(ref this.Def_PanelBackColour, ref gf.PanelBackColour))
                                                                            {
                                                                                this.UpdateDisplayPanelData(false);
                                                                            }
                                                                        }
                                                                        else
                                                                        {
                                                                            if (name == "Def_PanelShow")
                                                                            {
                                                                                gf.ShowDataDisplayMode = (toolStripButton.Checked ? 1 : 0);
                                                                                this.UpdateDisplayPanelData(false);
                                                                            }
                                                                            else
                                                                            {
                                                                                if (name == "Def_PanelSong")
                                                                                {
                                                                                    gf.ShowDataDisplaySongs = (toolStripButton.Checked ? 1 : 0);
                                                                                    this.UpdateDisplayPanelData(false);
                                                                                }
                                                                                else
                                                                                {
                                                                                    if (name == "Def_PanelSlides")
                                                                                    {
                                                                                        gf.ShowDataDisplaySlides = (toolStripButton.Checked ? 1 : 0);
                                                                                        this.UpdateDisplayPanelData(false);
                                                                                    }
                                                                                    else
                                                                                    {
                                                                                        if (name == "Def_PanelTitle")
                                                                                        {
                                                                                            gf.ShowDataDisplayTitle = (toolStripButton.Checked ? 1 : 0);
                                                                                            this.UpdateDisplayPanelData(false);
                                                                                        }
                                                                                        else
                                                                                        {
                                                                                            if (name == "Def_PanelCopyright")
                                                                                            {
                                                                                                gf.ShowDataDisplayCopyright = (toolStripButton.Checked ? 1 : 0);
                                                                                                this.UpdateDisplayPanelData(false);
                                                                                            }
                                                                                            else
                                                                                            {
                                                                                                if (name == "Def_PanelPrevNext")
                                                                                                {
                                                                                                    gf.ShowDataDisplayPrevNext = (toolStripButton.Checked ? 1 : 0);
                                                                                                    this.UpdateDisplayPanelData(false);
                                                                                                }
                                                                                                else
                                                                                                {
                                                                                                    if (name == "Def_PanelFontBold")
                                                                                                    {
                                                                                                        gf.ShowDataDisplayFontBold = (toolStripButton.Checked ? 1 : 0);
                                                                                                        this.UpdateDisplayPanelData(false);
                                                                                                    }
                                                                                                    else
                                                                                                    {
                                                                                                        if (name == "Def_PanelFontItalics")
                                                                                                        {
                                                                                                            gf.ShowDataDisplayFontItalic = (toolStripButton.Checked ? 1 : 0);
                                                                                                            this.UpdateDisplayPanelData(false);
                                                                                                        }
                                                                                                        else
                                                                                                        {
                                                                                                            if (name == "Def_PanelFontUnderline")
                                                                                                            {
                                                                                                                gf.ShowDataDisplayFontUnderline = (toolStripButton.Checked ? 1 : 0);
                                                                                                                this.UpdateDisplayPanelData(false);
                                                                                                            }
                                                                                                            else
                                                                                                            {
                                                                                                                if (name == "Def_PanelFontShadow")
                                                                                                                {
                                                                                                                    gf.ShowDataDisplayFontShadow = (toolStripButton.Checked ? 1 : 0);
                                                                                                                    this.UpdateDisplayPanelData(false);
                                                                                                                }
                                                                                                                else
                                                                                                                {
                                                                                                                    if (name == "Def_PanelFontOutline")
                                                                                                                    {
                                                                                                                        gf.ShowDataDisplayFontOutline = (toolStripButton.Checked ? 1 : 0);
                                                                                                                        this.UpdateDisplayPanelData(false);
                                                                                                                    }
                                                                                                                }
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        private void Def_PanelHeight_MouseUp(object sender, MouseEventArgs e)
        {
            gf.BottomBorderFactor = (double)this.Def_PanelHeight.Value / 100.0;
            this.UpdateDisplayPanelData(true);
        }
        private void Def_PanelFontList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!this.InitFormLoad)
            {
                gf.ShowDataDisplayFontName = this.Def_PanelFontList.Text;
                this.UpdateDisplayPanelData(false);
            }
        }
        private void Def_SetNoImage()
        {
            gf.BackgroundPicture = "";
            this.ApplyDefaultData(false);
            gf.SetShowBackground(gf.OutputItem, ref this.OutputScreen);
            this.RefreshSlidesFonts(ref gf.OutputItem);
            this.UpdateDefaultNoImageButton();
        }
        private void LoadWorshipListTemplate()
        {
            this.openFileDialog1.Filter = "EasiSlides Template File (*.est)|*.est";
            this.openFileDialog1.Title = "Load Session Settings from a Template";
            this.openFileDialog1.InitialDirectory = gf.WorshipTemplatesDir;
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName = this.openFileDialog1.FileName;
                this.LoadWorshipList(1, fileName);
                this.ApplyDefaultData(true);
                this.LoadIndexFilePostAction(gf.UsageMode.Worship);
            }
        }
        private void SaveWorshipListTemplate(string InFileName, string InitDirectory)
        {
            this.saveFileDialog1.Filter = "EasiSlides Template File (*.est)|*.est";
            this.saveFileDialog1.Title = "Save Current Session Settings to a Template";
            this.saveFileDialog1.InitialDirectory = InitDirectory;
            this.saveFileDialog1.FileName = gf.GetDisplayNameOnly(ref InFileName, false, true);
            this.saveFileDialog1.OverwritePrompt = true;
            this.saveFileDialog1.AddExtension = true;
            this.saveFileDialog1.DefaultExt = ".est";
            if (this.saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName = this.saveFileDialog1.FileName;
                try
                {
                    gf.SaveIndexFile(fileName, ref this.WorshipListItems, gf.UsageMode.Worship, false, "", "");
                }
                catch
                {
                    MessageBox.Show("Error Saving File, please make sure you have write access and try again");
                }
            }
        }
        private void Def_Media_Clicked()
        {
            FrmMediaPlayerControl frmMediaPlayerControl = new FrmMediaPlayerControl();
            gf.MPC_Type = gf.MPCType.Session;
            gf.Temp_MediaTitle1 = "";
            gf.Temp_MediaTitle2 = "";
            gf.Temp_MediaOption = gf.MediaOption;
            gf.Temp_MediaLocation = gf.MediaLocation;
            gf.Temp_MediaCaptureDeviceNumber = gf.MediaCaptureDeviceNumber;
            gf.Temp_MediaVolume = gf.MediaVolume;
            gf.Temp_MediaBalance = gf.MediaBalance;
            gf.Temp_MediaMute = gf.MediaMute;
            gf.Temp_MediaRepeat = gf.MediaRepeat;
            gf.Temp_MediaWidescreen = gf.MediaWidescreen;
            if (frmMediaPlayerControl.ShowDialog() == DialogResult.OK)
            {
                gf.MediaOption = gf.Temp_MediaOption;
                gf.MediaLocation = gf.Temp_MediaLocation;
                gf.MediaCaptureDeviceNumber = gf.Temp_MediaCaptureDeviceNumber;
                gf.MediaVolume = gf.Temp_MediaVolume;
                gf.MediaBalance = gf.Temp_MediaBalance;
                gf.MediaMute = gf.Temp_MediaMute;
                gf.MediaRepeat = gf.Temp_MediaRepeat;
                gf.MediaWidescreen = gf.Temp_MediaWidescreen;
                this.AssignMediaText(ref this.Def_AssignMedia, gf.MediaOption);
                this.ApplyDefaultData(false);
            }
        }
        private void Def_Region_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Def_Region, e.ClickedItem.Name, this.Def_ShowRegion1, this.Def_ShowRegion2, this.Def_ShowRegionBoth);
            gf.ShowLyrics = gf.ObjToInt(this.Def_Region.Tag);
            this.ApplyDefaultData(false);
        }
        private void Def_VAlign_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Def_VAlign, e.ClickedItem.Name, this.Def_VAlignTop, this.Def_VAlignCentre, this.Def_VAlignBottom);
            gf.ShowVerticalAlign = gf.ObjToInt(this.Def_VAlign.Tag);
            this.ApplyDefaultData(false);
        }
        private void Def_R1Align_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Def_R1Align, e.ClickedItem.Name, this.Def_R1AlignLeft, this.Def_R1AlignCentre, this.Def_R1AlignRight);
            gf.ShowFontAlign[0, 0] = gf.ObjToInt(this.Def_R1Align.Tag);
            this.ApplyDefaultData(false);
        }
        private void Def_R2Align_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Def_R2Align, e.ClickedItem.Name, this.Def_R2AlignLeft, this.Def_R2AlignCentre, this.Def_R2AlignRight);
            gf.ShowFontAlign[0, 1] = gf.ObjToInt(this.Def_R2Align.Tag);
            this.ApplyDefaultData(false);
        }
        private void Def_ImageMode_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Def_ImageMode, e.ClickedItem.Name, this.Def_ImageTile, this.Def_ImageCentre, this.Def_ImageBestFit);
            gf.BackgroundMode = (gf.ImageMode)gf.ObjToInt(this.Def_ImageMode.Tag);
            this.ApplyDefaultData(false);
        }
        private void Def_TransSelectedIndexChanged(object sender, EventArgs e)
        {
            if (!(this.UpdatingDefaultFields | this.InitFormLoad))
            {
                ToolStripComboBox toolStripComboBox = (ToolStripComboBox)sender;
                ImageTransitionControl.TransitionAction transitionAction = (toolStripComboBox.Name == "Def_TransItem") ? ImageTransitionControl.TransitionAction.AsStoredItem : ImageTransitionControl.TransitionAction.AsStoredSlide;
                gf.ShowItemTransition = this.Def_TransItem.SelectedIndex;
                gf.ShowSlideTransition = this.Def_TransSlides.SelectedIndex;
                this.ApplyDefaultData(false, transitionAction);
            }
        }
        private void ClearFormatPicture()
        {
            gf.PreviewItem.Format.BackgroundPicture = "";
            gf.PreviewItem.Format.TempImageFileName = "";
            gf.SetShowBackground(gf.PreviewItem, ref this.PreviewScreen, false);
            this.UpdateFormatData(false);
            this.Ind_NoImage.Enabled = false;
        }
        private void AllowIndividualFormat(bool AllowFormat)
        {
            this.AllowIndividualFormat(AllowFormat, false);
        }
        private void AllowIndividualFormat(bool AllowFormat, bool BoxChecked)
        {
            if (AllowFormat)
            {
                this.Ind_checkBox.Enabled = true;
                gf.PreviewItem.UseDefaultFormat = !BoxChecked;
            }
            else
            {
                this.Ind_checkBox.Enabled = false;
                gf.PreviewItem.UseDefaultFormat = !(gf.PreviewItem.Type == "P");
            }
            this.Ind_checkBox.Checked = BoxChecked;
            this.IndgroupBox1.Enabled = (BoxChecked & this.Ind_checkBox.Enabled);
            this.IndgroupBox2.Enabled = this.IndgroupBox1.Enabled;
            this.IndgroupBox3.Enabled = this.IndgroupBox1.Enabled;
            this.IndgroupBox4.Enabled = this.IndgroupBox1.Enabled;
            this.panelIndTemplate.Enabled = this.IndgroupBox1.Enabled;
        }
        private void ApplyIndividualFormat(ref gf.SongSettings InItem)
        {
            this.ApplyIndividualFormat(ref InItem, "D");
        }
        private void ApplyIndividualFormat(ref gf.SongSettings InItem, string InItemSym)
        {
            this.ApplyIndividualFormat(ref InItem, InItemSym, 0);
        }
        private void ApplyIndividualFormat(ref gf.SongSettings InItem, string InItemSym, int FNum)
        {
            this.Ind_checkBox.Checked = true;
            if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
            {
                int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                if (selectedIndex < 0)
                {
                    this.Ind_checkBox.Checked = false;
                }
                else
                {
                    bool flag = false;
                    gf.SongFormatData = "";
                    gf.PreviewItem.UseDefaultFormat = false;
                    if (gf.PreviewItem.Type == "I")
                    {
                        this.WorshipListItems.Items[selectedIndex].SubItems[2].Text = gf.PreviewItem.Format.FormatString;
                    }
                    if (this.WorshipListItems.Items[selectedIndex].SubItems[2].Text == "")
                    {
                        flag = true;
                    }
                    gf.SongFormatData = this.WorshipListItems.Items[selectedIndex].SubItems[2].Text;
                    gf.LoadIndividualFormatData(ref gf.PreviewItem, gf.SongFormatData);
                    this.UpdateFormatFields();
                    if (flag)
                    {
                        this.UpdateFormatData();
                    }
                }
            }
            else
            {
                if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
                {
                    gf.PreviewItem.UseDefaultFormat = false;
                }
            }
        }
        private void NoIndividualFormat()
        {
            this.Ind_checkBox.Checked = false;
            gf.LoadIndividualFormatData(ref gf.PreviewItem, "");
            this.RefreshSlidesFonts(ref gf.PreviewItem, ImageTransitionControl.TransitionAction.None);
            this.UpdateFormatFields();
            this.AllowIndividualFormat(true, false);
            if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
            {
                int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                gf.PreviewItem.UseDefaultFormat = true;
                bool flag = false;
                if (selectedIndex >= 0)
                {
                    if (this.WorshipListItems.Items[selectedIndex].SubItems[2].Text != "")
                    {
                        flag = true;
                    }
                    this.WorshipListItems.Items[selectedIndex].SubItems[2].Text = "";
                }
                if (flag)
                {
                    this.DisplayLyrics(gf.PreviewItem, 1);
                    this.SaveWorshipList();
                }
            }
            else
            {
                if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
                {
                    gf.PreviewItem.UseDefaultFormat = true;
                    this.DisplayLyrics(gf.PreviewItem, 1);
                }
            }
        }
        private void Ind_Items_MouseUp(object sender, MouseEventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            if (name == "Ind_LoadTemplate")
            {
                if (gf.PreviewItem.ItemID != "")
                {
                    this.LoadIndividualTemplate();
                }
            }
            else
            {
                if (name == "Ind_SaveTemplate")
                {
                    if (gf.PreviewItem.ItemID != "")
                    {
                        this.SaveIndividualTemplate(gf.PreviewItem.Title);
                    }
                }
                else
                {
                    if (name == "Ind_Shadow")
                    {
                        gf.PreviewItem.Format.UseShadowFont = (toolStripButton.Checked ? 1 : 0);
                        this.UpdateFormatData(false);
                    }
                    else
                    {
                        if (name == "Ind_Outline")
                        {
                            gf.PreviewItem.Format.UseOutlineFont = (toolStripButton.Checked ? 1 : 0);
                            this.UpdateFormatData(false);
                        }
                        else
                        {
                            if (name == "Ind_Interlace")
                            {
                                gf.PreviewItem.Format.ShowInterlace = (toolStripButton.Checked ? 1 : 0);
                                this.UpdateFormatData(false);
                            }
                            else
                            {
                                if (name == "Ind_Notations")
                                {
                                    gf.PreviewItem.Format.ShowNotations = (toolStripButton.Checked ? 1 : 0);
                                    this.UpdateFormatData(true);
                                }
                                else
                                {
                                    if (name == "Ind_CapoDown")
                                    {
                                        gf.PreviewItem.Format.PreviousTransposeOffset = gf.PreviewItem.Format.TransposeOffset;
                                        gf.PreviewItem.Format.TransposeOffset = gf.IncrementChord(ref gf.PreviewItem.Format.TransposeOffset, -1);
                                        this.UpdateFormatData(false);
                                    }
                                    else
                                    {
                                        if (name == "Ind_CapoUp")
                                        {
                                            gf.PreviewItem.Format.PreviousTransposeOffset = gf.PreviewItem.Format.TransposeOffset;
                                            gf.PreviewItem.Format.TransposeOffset = gf.IncrementChord(ref gf.PreviewItem.Format.TransposeOffset, 1);
                                            this.UpdateFormatData(false);
                                        }
                                        else
                                        {
                                            if (name == "Ind_NoImage")
                                            {
                                                this.ClearFormatPicture();
                                            }
                                            else
                                            {
                                                if (name == "Ind_BackColour")
                                                {
                                                    if (gf.SelectBackgroundColours(ref this.Ind_BackColour, ref gf.PreviewItem.Format.ShowScreenColour[0], ref gf.PreviewItem.Format.ShowScreenColour[1], ref gf.PreviewItem.Format.ShowScreenStyle, false))
                                                    {
                                                        this.ClearFormatPicture();
                                                    }
                                                }
                                                else
                                                {
                                                    if (name == "Ind_AssignMedia")
                                                    {
                                                        this.Ind_Media_Clicked();
                                                    }
                                                    else
                                                    {
                                                        if (name == "Ind_HideDisplayPanel")
                                                        {
                                                            gf.PreviewItem.Format.HideDisplayPanel = (toolStripButton.Checked ? 1 : 0);
                                                            this.UpdateFormatData(false);
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        private void LoadIndividualTemplate()
        {
            this.openFileDialog1.Filter = "EasiSlides Template File (*.est)|*.est";
            this.openFileDialog1.Title = "Load Individual Settings from a Template";
            this.openFileDialog1.InitialDirectory = gf.SettingsTemplatesDir;
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName = this.openFileDialog1.FileName;
                string text = this.LoadWorshipList(2, fileName);
                gf.PreviewItem.Format.FormatString = text;
                string type = gf.PreviewItem.Type;
                if (type == "D" || type == "B" || type == "T" || type == "I" || type == "W" || type == "M")
                {
                    if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
                    {
                        gf.SaveFormatStringToDatabase(gf.PreviewItem.ItemID, text);
                    }
                    else
                    {
                        if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
                        {
                            int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                            if (selectedIndex < 0)
                            {
                                return;
                            }
                            this.WorshipListItems.Items[selectedIndex].SubItems[2].Text = gf.PreviewItem.Format.FormatString;
                            this.SaveWorshipList();
                        }
                    }
                    gf.LoadIndividualFormatData(ref gf.PreviewItem, text);
                    if (type == "I")
                    {
                        gf.PreviewItem.Format.TempImageFileName = gf.PreviewItem.Format.BackgroundPicture;
                        this.SaveInfoFilePreview(true);
                    }
                    this.SetItemFontSettings(ref gf.PreviewItem);
                    gf.FormatDisplayLyrics(ref gf.PreviewItem, true, true);
                    this.AllowIndividualFormat(true, true);
                    this.UpdateFormatFields();
                    this.BuildVerseButtons(gf.PreviewItem);
                    this.DisplayLyrics(gf.PreviewItem, 0, true);
                    this.DisplayItemInfo(gf.PreviewItem, ref this.PreviewInfo);
                }
            }
        }
        private void SaveIndividualTemplate(string InTitle)
        {
            InTitle = gf.MakeTitleValidFileName(InTitle);
            this.saveFileDialog1.Filter = "EasiSlides Template File (*.est)|*.est";
            this.saveFileDialog1.Title = "Save Current Individual Settings to a Template";
            this.saveFileDialog1.InitialDirectory = gf.SettingsTemplatesDir;
            this.saveFileDialog1.FileName = InTitle;
            this.saveFileDialog1.OverwritePrompt = true;
            this.saveFileDialog1.AddExtension = true;
            this.saveFileDialog1.DefaultExt = ".est";
            if (this.saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName = this.saveFileDialog1.FileName;
                try
                {
                    gf.SaveIndexFile(fileName, ref this.WorshipListItems, gf.UsageMode.Worship, false, gf.PreviewItem.Format.FormatString, "");
                }
                catch
                {
                    MessageBox.Show("Error Saving File, please make sure you have write access and try again");
                }
            }
        }
        private void Ind_Media_Clicked()
        {
            FrmMediaPlayerControl frmMediaPlayerControl = new FrmMediaPlayerControl();
            gf.MPC_Type = gf.MPCType.Individual;
            gf.Temp_MediaItemType = gf.PreviewItem.Type;
            gf.Temp_MediaTitle1 = gf.PreviewItem.Title;
            gf.Temp_MediaTitle2 = gf.PreviewItem.Title2;
            gf.Temp_MediaOption = gf.PreviewItem.Format.MediaOption;
            gf.Temp_MediaLocation = gf.PreviewItem.Format.MediaLocation;
            gf.Temp_MediaCaptureDeviceNumber = gf.PreviewItem.Format.MediaCaptureDeviceNumber;
            gf.Temp_MediaVolume = gf.PreviewItem.Format.MediaVolume;
            gf.Temp_MediaBalance = gf.PreviewItem.Format.MediaBalance;
            gf.Temp_MediaMute = gf.PreviewItem.Format.MediaMute;
            gf.Temp_MediaRepeat = gf.PreviewItem.Format.MediaRepeat;
            gf.Temp_MediaWidescreen = gf.PreviewItem.Format.MediaWidescreen;
            if (frmMediaPlayerControl.ShowDialog() == DialogResult.OK)
            {
                gf.PreviewItem.Format.MediaOption = gf.Temp_MediaOption;
                gf.PreviewItem.Format.MediaLocation = gf.Temp_MediaLocation;
                gf.PreviewItem.Format.MediaCaptureDeviceNumber = gf.Temp_MediaCaptureDeviceNumber;
                gf.PreviewItem.Format.MediaVolume = gf.Temp_MediaVolume;
                gf.PreviewItem.Format.MediaBalance = gf.Temp_MediaBalance;
                gf.PreviewItem.Format.MediaMute = gf.Temp_MediaMute;
                gf.PreviewItem.Format.MediaRepeat = gf.Temp_MediaRepeat;
                gf.PreviewItem.Format.MediaWidescreen = gf.Temp_MediaWidescreen;
                this.AssignMediaText(ref this.Ind_AssignMedia, gf.PreviewItem.Format.MediaOption);
                this.UpdateFormatData(false);
            }
        }
        private void AssignMediaText(ref ToolStripButton InButton, int InMediaOption)
        {
            switch (InMediaOption)
            {
                case 1:
                    InButton.Text = "Media: As Title";
                    break;
                case 2:
                    InButton.Text = "Media: Specific";
                    break;
                case 3:
                    InButton.Text = "Media: Live Feed";
                    break;
                default:
                    InButton.Text = "Media: None";
                    break;
            }
        }
        private void Ind_RegionsFormat_MouseUp(object sender, MouseEventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            bool @checked = toolStripButton.Checked;
            string name = toolStripButton.Name;
            if (name == "Ind_R1Bold")
            {
                gf.PreviewItem.Format.ShowFontBold[0] = (@checked ? 1 : 0);
                this.UpdateFormatData();
            }
            else
            {
                if (name == "Ind_R1Underline")
                {
                    gf.PreviewItem.Format.ShowFontUnderline[0] = (@checked ? 1 : 0);
                    this.UpdateFormatData();
                }
                else
                {
                    if (name == "Ind_R1Colour")
                    {
                        if (gf.SelectColorFromBtn(ref this.Ind_R1Colour, ref gf.PreviewItem.Format.ShowFontColour[0]))
                        {
                            this.UpdateFormatData(false);
                        }
                    }
                    else
                    {
                        if (name == "Ind_R2Bold")
                        {
                            gf.PreviewItem.Format.ShowFontBold[1] = (@checked ? 1 : 0);
                            this.UpdateFormatData();
                        }
                        else
                        {
                            if (name == "Ind_R2Underline")
                            {
                                gf.PreviewItem.Format.ShowFontUnderline[1] = (@checked ? 1 : 0);
                                this.UpdateFormatData();
                            }
                            else
                            {
                                if (name == "Ind_R2Colour")
                                {
                                    if (gf.SelectColorFromBtn(ref this.Ind_R2Colour, ref gf.PreviewItem.Format.ShowFontColour[1]))
                                    {
                                        this.UpdateFormatData(false);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        private void Ind_R1Italics_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Ind_R1Italics, e.ClickedItem.Name, this.Ind_R1Italics0, this.Ind_R1Italics1, this.Ind_R1Italics2);
            int num = gf.ObjToInt(this.Ind_R1Italics.Tag);
            int num2 = num;
            if (num2 != 2)
            {
                gf.PreviewItem.Format.ShowFontItalic[0] = num;
                gf.PreviewItem.Format.ShowFontItalic[2] = num;
            }
            else
            {
                gf.PreviewItem.Format.ShowFontItalic[0] = 0;
                gf.PreviewItem.Format.ShowFontItalic[2] = 1;
            }
            this.UpdateFormatData();
        }
        private void Ind_R2Italics_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Ind_R2Italics, e.ClickedItem.Name, this.Ind_R2Italics0, this.Ind_R2Italics1, this.Ind_R2Italics2);
            int num = gf.ObjToInt(this.Ind_R2Italics.Tag);
            int num2 = num;
            if (num2 != 2)
            {
                gf.PreviewItem.Format.ShowFontItalic[1] = num;
                gf.PreviewItem.Format.ShowFontItalic[3] = num;
            }
            else
            {
                gf.PreviewItem.Format.ShowFontItalic[1] = 0;
                gf.PreviewItem.Format.ShowFontItalic[3] = 1;
            }
            this.UpdateFormatData();
        }
        private void Ind_Region_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Ind_Region, e.ClickedItem.Name, this.Ind_ShowRegion1, this.Ind_ShowRegion2, this.Ind_ShowRegionBoth);
            gf.PreviewItem.Format.ShowLyrics = gf.ObjToInt(this.Ind_Region.Tag);
            this.UpdateFormatData(false);
        }
        private void Ind_VAlign_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Ind_VAlign, e.ClickedItem.Name, this.Ind_VAlignTop, this.Ind_VAlignCentre, this.Ind_VAlignBottom);
            gf.PreviewItem.Format.ShowVerticalAlign = gf.ObjToInt(this.Ind_VAlign.Tag);
            this.UpdateFormatData(false);
        }
        private void Ind_ImageMode_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Ind_ImageMode, e.ClickedItem.Name, this.Ind_ImageTile, this.Ind_ImageCentre, this.Ind_ImageBestFit);
            gf.PreviewItem.Format.BackgroundMode = (gf.ImageMode)gf.ObjToInt(this.Ind_ImageMode.Tag);
            gf.SetShowBackground(gf.PreviewItem, ref this.PreviewScreen);
            this.UpdateFormatData(false);
        }
        private void Ind_R1Align_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Ind_R1Align, e.ClickedItem.Name, this.Ind_R1AlignLeft, this.Ind_R1AlignCentre, this.Ind_R1AlignRight);
            gf.PreviewItem.Format.ShowFontAlign[0] = gf.ObjToInt(this.Ind_R1Align.Tag);
            this.UpdateFormatData(false);
        }
        private void Ind_R2Align_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Ind_R2Align, e.ClickedItem.Name, this.Ind_R2AlignLeft, this.Ind_R2AlignCentre, this.Ind_R2AlignRight);
            gf.PreviewItem.Format.ShowFontAlign[1] = gf.ObjToInt(this.Ind_R2Align.Tag);
            this.UpdateFormatData(false);
        }
        private void Ind_FontSizeUpDown_MouseUp(object sender, MouseEventArgs e)
        {
            if (!this.UpdatingFormatFields)
            {
                gf.PreviewItem.Format.ShowFontSize[0] = (int)this.Ind_Reg1SizeUpDown.Value;
                gf.PreviewItem.Format.ShowFontSize[1] = (int)this.Ind_Reg2SizeUpDown.Value;
                this.UpdateFormatData();
            }
        }
        private void Ind_MarginUpDown_MouseUp(object sender, MouseEventArgs e)
        {
            if (!this.UpdatingFormatFields)
            {
                UpDownBase upDownBase = (UpDownBase)sender;
                string name = upDownBase.Name;
                this.UpdatingFormatFields = true;
                if (name == "Ind_Reg1TopUpDown")
                {
                    gf.PreviewItem.Format.ShowFontVPosition[0] = (int)this.Ind_Reg1TopUpDown.Value;
                    this.UpdatingFormatFields = true;
                    gf.UpdatePosUpDowns(ref this.Ind_Reg1TopUpDown, ref this.Ind_Reg2TopUpDown, ref this.Ind_BottomUpDown, ref gf.PreviewItem.Format.ShowFontVPosition[0], ref gf.PreviewItem.Format.ShowFontVPosition[1], gf.PreviewItem.Format.ShowBottomMargin);
                }
                else
                {
                    if (name == "Ind_Reg2TopUpDown")
                    {
                        gf.PreviewItem.Format.ShowFontVPosition[1] = (int)this.Ind_Reg2TopUpDown.Value;
                        this.UpdatingFormatFields = true;
                        gf.UpdatePosUpDowns(ref this.Ind_Reg1TopUpDown, ref this.Ind_Reg2TopUpDown, ref this.Ind_BottomUpDown, ref gf.PreviewItem.Format.ShowFontVPosition[0], ref gf.PreviewItem.Format.ShowFontVPosition[1], gf.PreviewItem.Format.ShowBottomMargin);
                    }
                    else
                    {
                        if (name == "Ind_LeftUpDown")
                        {
                            gf.PreviewItem.Format.ShowLeftMargin = (int)this.Ind_LeftUpDown.Value;
                        }
                        else
                        {
                            if (name == "Ind_RightUpDown")
                            {
                                gf.PreviewItem.Format.ShowRightMargin = (int)this.Ind_RightUpDown.Value;
                            }
                            else
                            {
                                if (name == "Ind_BottomUpDown")
                                {
                                    gf.PreviewItem.Format.ShowBottomMargin = (int)this.Ind_BottomUpDown.Value;
                                    this.UpdatingFormatFields = true;
                                    gf.UpdatePosUpDowns(ref this.Ind_Reg1TopUpDown, ref this.Ind_Reg2TopUpDown, ref this.Ind_BottomUpDown, ref gf.PreviewItem.Format.ShowFontVPosition[0], ref gf.PreviewItem.Format.ShowFontVPosition[1], gf.PreviewItem.Format.ShowBottomMargin);
                                }
                            }
                        }
                    }
                }
                this.UpdatingFormatFields = false;
                this.UpdateFormatData();
            }
        }
        private void Ind_FontsList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!(this.UpdatingFormatFields | this.InitFormLoad))
            {
                gf.PreviewItem.Format.ShowFontName[0] = this.Ind_Reg1FontsList.Text;
                gf.PreviewItem.Format.ShowFontName[1] = this.Ind_Reg2FontsList.Text;
                this.UpdateFormatData();
            }
        }
        private void Ind_TransSelectedIndexChanged(object sender, EventArgs e)
        {
            if (!(this.UpdatingFormatFields | this.InitFormLoad))
            {
                ToolStripComboBox toolStripComboBox = (ToolStripComboBox)sender;
                ImageTransitionControl.TransitionAction transitionAction = (toolStripComboBox.Name == "Ind_TransItem") ? ImageTransitionControl.TransitionAction.AsStoredItem : ImageTransitionControl.TransitionAction.AsStoredSlide;
                gf.PreviewItem.Format.ShowItemTransition = this.Ind_TransItem.SelectedIndex;
                gf.PreviewItem.Format.ShowSlideTransition = this.Ind_TransSlides.SelectedIndex;
                this.UpdateFormatData(false, transitionAction);
            }
        }
        private void SetSortButton(gf.SortBy Inmode)
        {
            if (Inmode == gf.SortBy.Alpha)
            {
                this.Folders_WordCount.Checked = false;
                this.CurStyle = gf.SortBy.Alpha;
            }
            else
            {
                if (Inmode == gf.SortBy.WordCount)
                {
                    this.Folders_WordCount.Checked = true;
                    this.CurStyle = gf.SortBy.WordCount;
                }
            }
        }
        private void SetPowerpointListingButton()
        {
            string name;
            if (gf.PowerpointListingStyle == 0)
            {
                name = this.PP_ListStyle.Name;
            }
            else
            {
                name = this.PP_PreviewStyle.Name;
            }
            gf.AssignDropDownItem(ref this.PP_ListType, name, this.PP_ListStyle, this.PP_PreviewStyle);
            this.PowerpointStyle_Changed(true);
        }
        private void SetItemFontSettings(ref gf.SongSettings InItem)
        {
            gf.FormatText(ref InItem, gf.PanelBackColour, gf.PanelBackColourTransparent, gf.PanelTextColour, gf.PanelTextColourAsRegion1, InItem.UseDefaultFormat);
        }
        private void ApplyWorshipMode()
        {
            gf.EasiSlidesMode = gf.UsageMode.Worship;
            this.ModeEnableItems(true);
            this.LoadWorshipList(1);
            this.WorshipListIndexChanged();
            this.ShowStatusBarSummary();
            this.DisplayLyrics(gf.PreviewItem, 0);
        }
        private void ApplyPraisebookMode()
        {
            this.Cursor = Cursors.WaitCursor;
            gf.EasiSlidesMode = gf.UsageMode.PraiseBook;
            this.ModeEnableItems(false);
            if (this.PraiseBook.Text == "")
            {
                if (this.PraiseBook.Items.Count > 0)
                {
                    this.PraiseBook.SelectedIndex = 0;
                }
            }
            else
            {
                this.LoadPraiseBook((this.PraiseBookItems.Items.Count == 0) ? 0 : 1);
            }
            this.PraiseBookIndexChanged();
            this.ShowStatusBarSummary();
            this.DisplayLyrics(gf.PreviewItem, 0);
            this.Cursor = Cursors.Default;
        }
        private void ModeEnableItems(bool EnableWorshipMode)
        {
            this.ImagesFolder.Enabled = EnableWorshipMode;
            this.flowLayoutImages.Enabled = EnableWorshipMode;
            if (this.BackgroundImagesCanvas[0] != null)
            {
                for (int i = 0; i < 1024; i++)
                {
                    if (this.BackgroundImagesCanvas[i] != null)
                    {
                        this.BackgroundImagesCanvas[i].Enabled = EnableWorshipMode;
                    }
                }
            }
            this.BookLookup.Enabled = EnableWorshipMode;
            this.toolStripBible2.Enabled = EnableWorshipMode;
            this.BibleUserLookup.Enabled = EnableWorshipMode;
            this.TabBibleVersions.Enabled = EnableWorshipMode;
            this.BibleText.Enabled = EnableWorshipMode;
            this.InfoScreenList.Enabled = EnableWorshipMode;
            this.MediaList.Enabled = EnableWorshipMode;
            this.panelExternalFiles1.Enabled = EnableWorshipMode;
            this.flowLayoutPreviewPowerPoint.Enabled = EnableWorshipMode;
            this.DefPanel.Enabled = EnableWorshipMode;
            this.IndPanel.Enabled = EnableWorshipMode;
            this.btnToOutput.Enabled = EnableWorshipMode;
            this.btnToLive.Enabled = EnableWorshipMode;
            this.btnToOutputMoveNext.Enabled = EnableWorshipMode;
            this.IndradioButtonText.Checked = true;
            this.SetPreviewAreas();
            this.Menu_WorshipSessions.Enabled = (EnableWorshipMode & !gf.ShowRunning);
            this.splitContainerPreview.Panel2Collapsed = !EnableWorshipMode;
            this.Menu_PraiseBookTemplates.Enabled = !EnableWorshipMode;
        }
        private void PraiseBookIndexChanged()
        {
            int selectedIndex = gf.GetSelectedIndex(this.PraiseBookItems);
            if (selectedIndex >= 0)
            {
                string text = this.PraiseBookItems.Items[selectedIndex].SubItems[3].Text;
                gf.PreviewItem.CurItemNo = selectedIndex + 1;
                gf.PreviewItem.TotalItems = this.PraiseBook.Items.Count;
                gf.PreviewItem.Source = gf.ItemSource.PraiseBook;
                this.LoadItem(ref gf.PreviewItem, text);
            }
            else
            {
                gf.PreviewItem.Type = "";
                gf.PreviewItem.ItemID = "";
                this.ClearLyrics(ref this.flowLayoutPreviewLyrics);
            }
        }
        private void ClearLyrics(ref Panel InPanel)
        {
            this.ClearLyrics(ref InPanel, false);
        }
        private void ClearLyrics(ref Panel InPanel, bool SetFocus)
        {
            if (InPanel.Name == "flowLayoutPreviewLyrics")
            {
                this.FormatLyricsContainers(gf.PreviewItem, true, SetFocus);
            }
            else
            {
                this.FormatLyricsContainers(gf.OutputItem, true, SetFocus);
            }
        }
        public void Load32PraiseBook(int DataType)
        {
            if (!(gf.Trim(this.PraiseBook.Text) == ""))
            {
                ListViewItem listViewItem = new ListViewItem();
                string inFileName = gf.PraiseBookDir + gf.CurPraiseBook + ".esp";
                gf.LoadFileContents(inFileName, ref this.InContents);
                int num = gf.Load32HeaderData(inFileName, this.InContents, ref gf.HeaderData);
                if (num < 1)
                {
                    gf.ApplyHeaderData(1);
                    this.InContents = "";
                }
                if (DataType == 1)
                {
                    gf.ApplyHeaderData(1);
                }
                else
                {
                    this.PraiseBookItems.Items.Clear();
                    gf.ApplyHeaderData(1);
                    this.InContents = gf.Mid(this.InContents, num + 1, this.InContents.Length - num);
                    int num2 = 0;
                    int i = this.InContents.IndexOf(">");
                    try
                    {
                        Database daoDb = gf.GetDaoDb(gf.ConnectStringMainDB);
                        Recordset recordset = null;
                        while (i >= 0)
                        {
                            string text = gf.Trim(gf.Mid(this.InContents, num2, i - num2));
                            if (text != "")
                            {
                                int num3 = text.IndexOf("\\");
                                string fNum_ID = gf.Mid(text, 1, num3 - 1);
                                int num4 = text.IndexOf("\\", num3 + 1);
                                if (num4 < 0)
                                {
                                    num4 = text.Length + 1;
                                }
                                string displayName = gf.Mid(text, num3 + 1, num4 - (num3 + 1));
                                gf.WorshipListIDOK = true;
                                this.WriteItemtoPraiseBook(daoDb, recordset, gf.Left(text, 1), fNum_ID, displayName, "");
                            }
                            num2 = i + 1;
                            i = this.InContents.IndexOf(">", num2);
                        }
                        if (recordset != null)
                        {
                            recordset.Close();
                        }
                    }
                    catch
                    {
                    }
                    this.LoadIndexFilePostAction(gf.UsageMode.PraiseBook);
                }
            }
        }
        private void WriteItemtoPraiseBook(Database db, Recordset rs, string InSym, string FNum_ID, string DisplayName1, string FolderName)
        {
            if (!(FNum_ID == ""))
            {
                ListViewItem listViewItem = new ListViewItem();
                string text = "0";
                string text2 = "";
                if (InSym == "D")
                {
                    bool flag = false;
                    try
                    {
                        string fullSearchString;
                        if (gf.WorshipListIDOK)
                        {
                            fullSearchString = "select * from SONG where songid = " + FNum_ID + " AND FolderNo > 0 ";
                        }
                        else
                        {
                            fullSearchString = string.Concat(new object[]
							{
								"select * from SONG where LCase(Title_1) like \"",
								DisplayName1.ToLower(),
								"\"  AND FolderNo = ",
								gf.GetFolderNumber(FolderName)
							});
                        }
                        rs = gf.GetRecordSet(db, fullSearchString);
                        if (rs != null && !rs.EOF)
                        {
                            rs.MoveFirst();
                            if (gf.GetDataInt(rs, "FolderNo") > 0)
                            {
                                if (gf.FolderUse[gf.GetDataInt(rs, "FolderNo")] > 0)
                                {
                                    DisplayName1 = gf.GetDataString(rs, "Title_1");
                                    FolderName = gf.FolderName[gf.GetDataInt(rs, "FolderNo")];
                                    FNum_ID = "D" + gf.GetDataInt(rs, "songid");
                                    text = ((gf.GetDataString(rs, "song_number") != "") ? gf.GetDataString(rs, "song_number") : "0");
                                    flag = true;
                                }
                            }
                        }
                        if (rs != null)
                        {
                            rs.Close();
                        }
                        if (!flag)
                        {
                            FNum_ID = "D0";
                            DisplayName1 += " <Error - Item Not Found>";
                        }
                    }
                    catch
                    {
                        FNum_ID = "D0";
                        DisplayName1 += " <Error - Item Not Found>";
                    }
                }
                else
                {
                    FNum_ID = "D0";
                    gf.GetDisplayNameOnly(ref DisplayName1, true);
                }
                listViewItem = this.PraiseBookItems.Items.Add(gf.GetCJKTitle(DisplayName1, gf.PB_CJKGroupStyle, ref text2));
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add(DisplayName1);
                listViewItem.SubItems.Add(FNum_ID);
                listViewItem.SubItems.Add(text2);
                listViewItem.SubItems.Add(text);
            }
        }
        private void ShowStatusBarSummary()
        {
            string text = "";
            if (this.IsSelectedTab(this.tabControlSource, "tabBibles"))
            {
                if (this.BibleText.Text != "")
                {
                    text = "Verses listed: " + gf.HB_VersesLocation[0, 0].ToString() + " / ";
                }
                else
                {
                    if (gf.HB_TotalVersions > 0)
                    {
                        text = "Verses listed: 0 / ";
                    }
                }
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
                {
                    text = "InfoScreen: " + this.InfoScreenList.Items.Count.ToString() + " Listed. / ";
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabMedia"))
                    {
                        text = "Media: " + this.MediaList.Items.Count.ToString() + " Listed. / ";
                    }
                    else
                    {
                        text = "Folder: " + this.SongsList.Items.Count.ToString() + ((this.SongsList.Items.Count < 1) ? " item. /" : " items / ");
                    }
                }
            }
            if (gf.EasiSlidesMode == gf.UsageMode.Worship)
            {
                text = text + "Worship: " + this.WorshipListItems.Items.Count.ToString() + ((this.WorshipListItems.Items.Count < 1) ? " item." : " items. ");
            }
            else
            {
                if (gf.EasiSlidesMode == gf.UsageMode.PraiseBook)
                {
                    text = text + "PraiseBook: " + this.PraiseBookItems.Items.Count.ToString() + ((this.PraiseBookItems.Items.Count < 1) ? " item." : " items. ");
                }
            }
            this.statusStripMain.Items[0].Text = text;
            text = "";
            if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
            {
                if (gf.PreviewItem.Type == "D")
                {
                    if (gf.PreviewItem.FolderNo > 0)
                    {
                        text = text + " " + gf.FolderName[gf.PreviewItem.FolderNo];
                    }
                }
            }
            else
            {
                if (gf.PreviewItem.Source == gf.ItemSource.ExternalFileInfoScreen)
                {
                    text += this.InfoScreenFolder.Text;
                }
                else
                {
                    if (gf.PreviewItem.Source == gf.ItemSource.ExternalFileMedia)
                    {
                        text += this.MediaFolder.Text;
                    }
                    else
                    {
                        if (gf.PreviewItem.Source == gf.ItemSource.ExternalFilePowerpoint)
                        {
                            text += this.PowerpointFolder.Text;
                        }
                        else
                        {
                            if (gf.PreviewItem.Source == gf.ItemSource.HolyBible)
                            {
                                text += "Holy Bible";
                            }
                            else
                            {
                                if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
                                {
                                    text += "Worship";
                                    if (gf.PreviewItem.Type == "D")
                                    {
                                        if (gf.PreviewItem.FolderNo > 0)
                                        {
                                            text = text + " (" + gf.FolderName[gf.PreviewItem.FolderNo] + ")";
                                        }
                                    }
                                }
                                else
                                {
                                    if (gf.PreviewItem.Source == gf.ItemSource.PraiseBook)
                                    {
                                        text += "PraiseBook";
                                        if (gf.PreviewItem.Type == "D")
                                        {
                                            if (gf.PreviewItem.FolderNo > 0)
                                            {
                                                text = text + " (" + gf.FolderName[gf.PreviewItem.FolderNo] + ")";
                                            }
                                        }
                                    }
                                    else
                                    {
                                        text = (text ?? "");
                                    }
                                }
                            }
                        }
                    }
                }
            }
            this.statusStripMain.Items[1].Text = string.Concat(new string[]
			{
				text,
				(gf.PreviewItem.User_Reference != "") ? (" [" + gf.PreviewItem.User_Reference + "]") : "",
				(gf.PreviewItem.Book_Reference != "") ? (" [" + gf.PreviewItem.Book_Reference + "]") : "",
				" ",
				this.KeyCapoText
			});
            this.statusStripMain.Items[1].ToolTipText = this.statusStripMain.Items[1].Text;
            this.StatusBarOutputPaneMess = this.ShowStatusBarOutputArea();
            this.SetStatusBarMediaTimings();
            this.SetStatusbarSize();
        }
        private string ShowStatusBarOutputArea()
        {
            string text = "";
            if (gf.OutputItem.CurItemNo < 1)
            {
                if (gf.OutputItem.ItemID != "")
                {
                    string text2 = text;
                    text = string.Concat(new string[]
					{
						text2,
						gf.OutputItem.CurSlide.ToString(),
						"/",
						gf.OutputItem.TotalSlides.ToString(),
						" [Ad-hoc]"
					});
                }
                else
                {
                    text = (text ?? "");
                }
            }
            else
            {
                string text2 = text;
                text = string.Concat(new string[]
				{
					text2,
					gf.OutputItem.CurSlide.ToString(),
					"/",
					gf.OutputItem.TotalSlides.ToString(),
					" [",
					Convert.ToString(gf.OutputItem.CurItemNo),
					"/",
					this.WorshipListItems.Items.Count.ToString(),
					"]"
				});
            }
            text += ((gf.GapItemOption > gf.GapType.None) ? (((text == "") ? "" : " ") + "(" + gf.GapItemOption.ToString() + " Gap)") : "");
            this.statusStripMain.Items[2].Image = (gf.DualMonitorMode ? this.DualMonIcon : this.SingleMonIcon);
            this.statusStripMain.Items[2].Text = text;
            this.statusStripMain.Items[2].ToolTipText = gf.OutputMonitorText;
            if (gf.KeyBoardOption == 1)
            {
                this.statusStripMain.Items[3].Image = this.Keyboard1Icon;
                this.statusStripMain.Items[3].ToolTipText = "Use Alternate Keyboard keys";
            }
            else
            {
                this.statusStripMain.Items[3].Image = null;
                this.statusStripMain.Items[3].ToolTipText = "";
            }
            return text;
        }
        private void SetStatusBarMediaTimings()
        {
            if (gf.ShowRunning)
            {
                string text = this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_GetMediaTimings);
                if (text != "")
                {
                    this.statusStripMain.Items[2].Text = this.StatusBarOutputPaneMess + " - " + text;
                }
                else
                {
                    this.statusStripMain.Items[2].Text = this.StatusBarOutputPaneMess;
                }
            }
        }
        private void SetStatusbarSize()
        {
            this.statusStripMain.Items[0].Width = this.splitContainerMain.Panel1.Width + 1;
            this.statusStripMain.Items[1].Width = this.splitContainer2.Panel1.Width + 2;
            if (gf.KeyBoardOption == 1)
            {
                this.statusStripMain.Items[3].Width = 40;
            }
            else
            {
                this.statusStripMain.Items[3].Width = 0;
            }
            int num = this.statusStripMain.Width - (this.statusStripMain.Items[0].Width + this.statusStripMain.Items[1].Width + 1 + this.statusStripMain.Items[3].Width) - 15;
            this.statusStripMain.Items[2].Width = ((num > 0) ? num : 0);
        }
        private void tabControlLists_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (this.tabControlLists.SelectedIndex)
            {
                case 0:
                    this.ApplyWorshipMode();
                    break;
                case 1:
                    this.ApplyPraisebookMode();
                    break;
            }
        }
        private void PopulateWorshipList()
        {
            bool flag = false;
            this.SessionList.Items.Clear();
            if (!Directory.Exists(gf.WorshipDir))
            {
                gf.MakeDir(gf.WorshipDir);
            }
            DirectoryInfo directoryInfo = new DirectoryInfo(gf.WorshipDir);
            FileInfo[] files = directoryInfo.GetFiles("*.esw");
            for (int i = 0; i < files.Length; i++)
            {
                FileInfo fileInfo = files[i];
                string text = fileInfo.Name;
                text = gf.GetDisplayNameOnly(ref text, true);
                if (text != "")
                {
                    this.SessionList.Items.Add(text);
                    if (gf.CurSession == text)
                    {
                        flag = true;
                    }
                }
            }
            if (flag)
            {
                this.SessionList.Text = gf.CurSession;
            }
            else
            {
                if (this.SessionList.Items.Count > 0)
                {
                    this.SessionList.SelectedIndex = 0;
                    gf.CurSession = this.SessionList.Items[0].ToString();
                }
                else
                {
                    gf.CurSession = "Worship Service";
                    gf.CreateNewFile(gf.WorshipDir + gf.CurSession + ".esw");
                    this.SessionList.Items.Add(gf.CurSession);
                    this.SessionList.SelectedIndex = 0;
                }
            }
            this.SessionList_Change();
        }
        private void PopulatePraiseBooksList()
        {
            bool flag = false;
            this.PraiseBook.Items.Clear();
            if (!Directory.Exists(gf.PraiseBookDir))
            {
                gf.MakeDir(gf.PraiseBookDir);
            }
            DirectoryInfo directoryInfo = new DirectoryInfo(gf.PraiseBookDir);
            FileInfo[] files = directoryInfo.GetFiles("*.esp");
            for (int i = 0; i < files.Length; i++)
            {
                FileInfo fileInfo = files[i];
                string text = fileInfo.Name;
                text = gf.GetDisplayNameOnly(ref text, true);
                if (text != "")
                {
                    this.PraiseBook.Items.Add(text);
                    if (gf.CurPraiseBook == text)
                    {
                        flag = true;
                    }
                }
            }
            if (flag)
            {
                this.PraiseBook.Text = gf.CurPraiseBook;
            }
            else
            {
                if (this.PraiseBook.Items.Count > 0)
                {
                    this.PraiseBook.SelectedIndex = 0;
                    gf.CurPraiseBook = this.PraiseBook.Items[0].ToString();
                }
                else
                {
                    gf.CurPraiseBook = "PraiseBook 1";
                    gf.CreateNewFile(gf.PraiseBookDir + gf.CurPraiseBook + ".esp");
                    this.PraiseBook.Items.Add(gf.CurPraiseBook);
                    this.PraiseBook.SelectedIndex = 0;
                }
            }
            this.PraiseBook.Text = gf.CurPraiseBook;
        }
        private void PraiseBook_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!this.InitFormLoad)
            {
                this.PraiseBookList_Change();
            }
        }
        private void PraiseBookList_Change()
        {
            if (gf.Trim(this.PraiseBook.Text) == "")
            {
                this.toolStripPraiseBook1.Items[1].Enabled = false;
                this.toolStripPraiseBook1.Items[2].Enabled = false;
                this.toolStripPraiseBook2.Items[0].Enabled = false;
                this.toolStripPraiseBook2.Items[2].Enabled = false;
                this.toolStripPraiseBook2.Items[3].Enabled = false;
                this.PraiseBook.Items.Clear();
            }
            else
            {
                this.toolStripPraiseBook1.Items[1].Enabled = this.IsSelectedTab(this.tabControlSource, "tabFolders");
                this.toolStripPraiseBook1.Items[2].Enabled = true;
                this.toolStripPraiseBook2.Items[0].Enabled = true;
                this.toolStripPraiseBook2.Items[2].Enabled = true;
                this.toolStripPraiseBook2.Items[3].Enabled = true;
                if (!this.InitFormLoad)
                {
                    this.Cursor = Cursors.WaitCursor;
                    gf.CurPraiseBook = gf.Trim(this.PraiseBook.Text);
                    this.LoadPraiseBook(0);
                    this.PraiseBookIndexChanged();
                    this.ShowStatusBarSummary();
                    this.DisplayLyrics(gf.PreviewItem, 0);
                    this.Cursor = Cursors.Default;
                }
            }
        }
        private void FormatPowerPointThumbContainers(ref ImageCanvas[] InCanvas, ref FlowLayoutPanel InPanel, int InTotalScreens)
        {
            gf.ThumbImagesPerRow = 3;
            string name;
            if (InPanel.Name == "flowLayoutPreviewPowerPoint")
            {
                name = "PP_Preview";
                this.flowLayoutPreviewPowerPoint.Controls.Clear();
            }
            else
            {
                name = "PP_Output";
                this.flowLayoutOutputPowerPoint.Controls.Clear();
            }
            for (int i = 0; i < InTotalScreens; i++)
            {
                if (InCanvas[i] == null)
                {
                    InCanvas[i] = new ImageCanvas();
                    InCanvas[i].Name = name;
                    InCanvas[i].Tag = i.ToString();
                    InCanvas[i].SlideNumber = i + 1;
                    InCanvas[i].MouseUp += new MouseEventHandler(this.PowerPointImage_MouseUp);
                    InCanvas[i].PowerPoint = true;
                }
                if (InPanel.Name == "flowLayoutPreviewPowerPoint")
                {
                    this.flowLayoutPreviewPowerPoint.Controls.Add(InCanvas[i]);
                }
                else
                {
                    this.flowLayoutOutputPowerPoint.Controls.Add(InCanvas[i]);
                }
            }
        }
        private void PowerPointImage_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                Control control = (Control)sender;
                if (control.Name == "PP_Preview")
                {
                    gf.PreviewItem.CurSlide = gf.ObjToInt(control.Tag) + 1;
                    this.MoveToSlide(gf.PreviewItem, gf.KeyDirection.Refresh);
                }
                else
                {
                    gf.OutputItem.CurSlide = gf.ObjToInt(control.Tag) + 1;
                    this.MoveToSlide(gf.OutputItem, gf.KeyDirection.Refresh);
                }
            }
        }
        private void SetCanvasVisible(ref ImageCanvas[] InCanvas, bool MakeVisible)
        {
            for (int i = 0; i < 1024; i++)
            {
                if (InCanvas[i] != null)
                {
                    InCanvas[i].Visible = MakeVisible;
                }
            }
        }
        private void BuildEditHistoryMenuItems()
        {
            this.Menu_EditHistoryList.DropDownItems.Clear();
            ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
            for (int i = 0; i < gf.AbsoluteMaxHitoryItems - 1; i++)
            {
                toolStripMenuItem = new ToolStripMenuItem();
                toolStripMenuItem.Name = "Menu_EditHistory" + i.ToString();
                toolStripMenuItem.Text = "";
                this.Menu_EditHistoryList.DropDownItems.Add(toolStripMenuItem);
                this.Menu_EditHistoryList.DropDownItems[i].Tag = i.ToString();
            }
            //EventHandler value = new EventHandler(new EventHandler(this, ldftn(Menu_EditHistory_Click)).Invoke);
            foreach (ToolStripMenuItem toolStripMenuItem2 in this.Menu_EditHistoryList.DropDownItems)
            {
                //toolStripMenuItem2.Click += value;
            }
        }
        private void BuildPreviewScreenHandler()
        {
            this.PreviewScreen.DoubleClick += new EventHandler(this.PreviewScreen_DoubleClick);
        }
        private void PreviewScreen_DoubleClick(object sender, EventArgs e)
        {
            if (gf.PreviewItem.Type == "D")
            {
                string inIDString = "D" + gf.PreviewItem.ItemID;
                this.Edit_Item(inIDString);
            }
            else
            {
                if (gf.PreviewItem.Type == "P")
                {
                    string inIDString = "P" + gf.PreviewItem.Path;
                    this.Edit_Item(inIDString);
                }
                else
                {
                    if (gf.PreviewItem.Type == "B")
                    {
                        string inIDString = "B" + gf.PreviewItem.ItemID;
                        string text = this.Edit_Item(inIDString, ref gf.PreviewItem.Title);
                        if (text != "")
                        {
                            if (gf.PreviewItem.Source == gf.ItemSource.HolyBible)
                            {
                                this.HB_CurSelectedPassages = gf.Right(text, text.Length - 1);
                                this.HB_CurSelectedTitle = gf.PreviewItem.Title;
                                this.HB_SelectedPassagesChanged(this.HB_CurSelectedPassages, ref this.HB_CurSelectedTitle);
                            }
                            else
                            {
                                if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
                                {
                                    int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                                    this.WorshipListItems.Items[selectedIndex].SubItems[0].Text = gf.PreviewItem.Title;
                                    this.WorshipListItems.Items[selectedIndex].SubItems[1].Text = text;
                                    this.WorshipListIndexChanged();
                                }
                            }
                        }
                    }
                    else
                    {
                        if (gf.PreviewItem.Type == "T")
                        {
                            string inIDString = "T" + gf.PreviewItem.Path;
                            this.Edit_Item(inIDString);
                        }
                        else
                        {
                            if (gf.PreviewItem.Type == "W")
                            {
                                string inIDString = "W" + gf.PreviewItem.Path;
                                this.Edit_Item(inIDString);
                            }
                            else
                            {
                                if (gf.PreviewItem.Type == "I")
                                {
                                    string inIDString = "I" + gf.PreviewItem.Path;
                                    this.Edit_Item(inIDString);
                                }
                                else
                                {
                                    if (gf.PreviewItem.Type == "M")
                                    {
                                        string inIDString = "M" + gf.PreviewItem.Path;
                                        this.Edit_Item(inIDString);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        private void BuildPicturesFolderList()
        {
            gf.PictureGroups[0, 0] = "Scenery";
            gf.PictureGroups[0, 1] = gf.RootEasiSlidesDir + "Images\\" + gf.PictureGroups[0, 0] + "\\";
            gf.PictureGroups[1, 0] = "Tiles";
            gf.PictureGroups[1, 1] = gf.RootEasiSlidesDir + "Images\\" + gf.PictureGroups[1, 0] + "\\";
            gf.PictureGroups[2, 0] = "Images";
            gf.PictureGroups[2, 1] = gf.ImagesDir;
            gf.PicFolderTotal = 3;
            string[] directories = Directory.GetDirectories(gf.ImagesDir);
            if (directories.Length > 0)
            {
                gf.SingleArraySort(directories);
            }
            string text = gf.RootEasiSlidesDir + "Images\\Scenery";
            string text2 = gf.RootEasiSlidesDir + "Images\\Tiles";
            gf.BuildSubFolderList(gf.ImagesDir, gf.ImagesDir, ref gf.PictureGroups, ref gf.PicFolderTotal);
            this.ImagesFolder.Items.Clear();
            for (int i = 0; i < gf.PicFolderTotal; i++)
            {
                this.ImagesFolder.Items.Add(gf.PictureGroups[i, 0]);
            }
        }
        private void BuildInfoScreenFolderList()
        {
            gf.InfoScreenGroups[0, 0] = "InfoScreen Items";
            gf.InfoScreenGroups[0, 1] = gf.InfoScreenDir;
            gf.InfoScreenFolderTotal = 1;
            gf.BuildSubFolderList(gf.InfoScreenDir, gf.InfoScreenDir, ref gf.InfoScreenGroups, ref gf.InfoScreenFolderTotal);
            this.InfoScreenFolder.Items.Clear();
            for (int i = 0; i < gf.InfoScreenFolderTotal; i++)
            {
                this.InfoScreenFolder.Items.Add(gf.InfoScreenGroups[i, 0]);
            }
            if (this.InfoScreenFolder.Items.Count > 0)
            {
                this.InfoScreenFolder.SelectedIndex = 0;
            }
        }
        private void BuildPowerpointFolderList()
        {
            gf.PowerpointGroups[0, 0] = "Powerpoint Items";
            gf.PowerpointGroups[0, 1] = gf.PowerpointDir;
            gf.PowerpointFolderTotal = 1;
            gf.BuildSubFolderList(gf.PowerpointDir, gf.PowerpointDir, ref gf.PowerpointGroups, ref gf.PowerpointFolderTotal);
            this.PowerpointFolder.Items.Clear();
            for (int i = 0; i < gf.PowerpointFolderTotal; i++)
            {
                this.PowerpointFolder.Items.Add(gf.PowerpointGroups[i, 0]);
            }
            if (this.PowerpointFolder.Items.Count > 0)
            {
                this.PowerpointFolder.SelectedIndex = 0;
            }
        }
        private void BuildMediaFolderList()
        {
            gf.MediaGroups[0, 0] = "Media Files";
            gf.MediaGroups[0, 1] = gf.MediaDir;
            gf.MediaFolderTotal = 1;
            gf.BuildSubFolderList(gf.MediaDir, gf.MediaDir, ref gf.MediaGroups, ref gf.MediaFolderTotal);
            this.MediaFolder.Items.Clear();
            for (int i = 0; i < gf.MediaFolderTotal; i++)
            {
                this.MediaFolder.Items.Add(gf.MediaGroups[i, 0]);
            }
            if (this.MediaFolder.Items.Count > 0)
            {
                this.MediaFolder.SelectedIndex = 0;
            }
        }
        private void ExternalFilesPP_DoubleClick(object sender, EventArgs e)
        {
            this.AddFromPowerpointList();
        }
        private void ExternalFilesPP_MouseUp(object sender, MouseEventArgs e)
        {
            Control control = (Control)sender;
            this.ThumbImageClicked = Convert.ToInt32(control.Tag);
            if (e.Button == MouseButtons.Left)
            {
                gf.PreviewItem.Source = gf.ItemSource.ExternalFilePowerpoint;
                string text = "P" + this.ExternalPPImagename[this.ThumbImageClicked];
                this.PowerpointCurPreview = text;
                string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(this.ExternalPPImagename[this.ThumbImageClicked]);
                gf.PreviewItem.InMainItemText = fileNameWithoutExtension;
                gf.PreviewItem.InSubItemItem1Text = text;
                gf.PreviewItem.CurItemNo = 0;
                this.LoadItem(ref gf.PreviewItem, text, "", 1, ref fileNameWithoutExtension, false);
                this.LoadExternalPowerpointThumbImages(this.ThumbImageClicked + 1);
                this.UpdateDisplayPanelFields();
            }
            else
            {
                if (e.Button == MouseButtons.Right)
                {
                }
            }
        }
        private void SongFolder_Change()
        {
            if (!(!this.ImplementFolderChange | this.SongFolder.Text == ""))
            {
                if (this.SongFolder.Items[this.SongFolder.Items.Count - 1].ToString() == "Search Results:")
                {
                    this.SongFolder.Items.RemoveAt(this.SongFolder.Items.Count - 1);
                }
                this.SongFolder.ForeColor = this.SongsList.ForeColor;
                bool findItemMediaOnly = gf.FindItemMediaOnly;
                gf.FindItemMediaOnly = false;
                bool findItemInContents = gf.FindItemInContents;
                gf.FindItemInContents = false;
                this.SongsList.Items.Clear();
                this.SetSongListColWidth();
                if (this.SongFolder.Items.Count >= 1)
                {
                    int folderNumber = gf.GetFolderNumber(this.SongFolder.Text);
                    this.CurStyle = gf.FolderGroupStyle[folderNumber];
                    this.Cursor = Cursors.WaitCursor;
                    this.SetSortButton(this.CurStyle);
                    this.SongsList.RightToLeft = ((gf.ShowFontRTL[folderNumber, 0] > 0) ? RightToLeft.Yes : RightToLeft.No);
                    this.SongsList.RightToLeftLayout = (gf.ShowFontRTL[folderNumber, 0] > 0);
                    this.FillList(folderNumber, "", gf.FindItemMediaOnly);
                    gf.FindItemMediaOnly = findItemMediaOnly;
                    gf.FindItemInContents = findItemInContents;
                    this.ShowStatusBarSummary();
                    this.Cursor = Cursors.Default;
                }
            }
        }
        private void Menu_useSongNumbering_Click(object sender, EventArgs e)
        {
            this.ApplyUseSongNumbers(this.Menu_UseSongNumbering.Checked);
            this.ImplementFolderChange = true;
            this.SongFolder_Change();
        }
        private void ApplyUseSongNumbers(bool InUseSongNumbers)
        {
            gf.UseSongNumbers = InUseSongNumbers;
            this.Menu_UseSongNumbering.Checked = gf.UseSongNumbers;
            if (InUseSongNumbers)
            {
                this.SongsList.Columns[4].Width = 60;
                this.Folders_WordCount.Enabled = false;
                this.PB_WordCount.Enabled = false;
            }
            else
            {
                this.SongsList.Columns[4].Width = 0;
                this.Folders_WordCount.Enabled = true;
                this.PB_WordCount.Enabled = true;
            }
            this.SetSortButtonPB(gf.PB_CJKGroupStyle);
        }
        private void BuildFolderList()
        {
            this.ImplementFolderChange = false;
            int num = 0;
            string text = "";
            string text2 = "";
            int num2;
            if (this.SongFolder.Items.Count > 0)
            {
                if (this.SongFolder.SelectedIndex < 0)
                {
                    this.SongFolder.SelectedIndex = 0;
                }
                num2 = gf.GetFolderNumber(this.SongFolder.SelectedText);
            }
            else
            {
                num2 = 0;
            }
            this.SongFolder.Items.Clear();
            for (int i = 1; i < 41; i++)
            {
                if (gf.FolderUse[i] > 0)
                {
                    this.SongFolder.Items.Add(gf.FolderName[i]);
                    if (gf.GetFolderNumber(gf.FolderName[i]) == num2)
                    {
                        text = gf.FolderName[i];
                    }
                    if (num == 0)
                    {
                        num = i;
                        text2 = gf.FolderName[i];
                    }
                }
            }
            if (text == "")
            {
                text = text2;
            }
            this.SongFolder.Text = text;
            this.ImplementFolderChange = true;
            this.SongFolder_Change();
        }
        private void FillList(int FNumber, string ListString, bool InItemMusicOnly)
        {
            string text = "*";
            gf.TotalMusicFiles = -1;
            string text2 = "";
            if (FNumber == 0)
            {
                for (int i = 1; i < 41; i++)
                {
                    if (gf.FindSongsFolder[i])
                    {
                        if (text2 == "")
                        {
                            text2 = " and (FolderNo=" + Convert.ToString(i);
                        }
                        else
                        {
                            text2 = text2 + " or FolderNo=" + Convert.ToString(i);
                        }
                    }
                }
                text2 += ")";
            }
            else
            {
                text2 = " and FolderNo=" + Convert.ToString(FNumber);
            }
            string text3;
            if (FNumber >= 0)
            {
                text3 = string.Concat(new string[]
				{
					"select * from SONG where (LCase(Title_1) like \"",
					text.ToLower(),
					"\" ",
					text2,
					") or (LCase(Title_2) like \"",
					text.ToLower(),
					"\" ",
					text2,
					")"
				});
            }
            else
            {
                text3 = gf.Find_SQLString;
            }
            string str;
            if (gf.UseSongNumbers)
            {
                str = " order by song_number, cjk_strokecount";
            }
            else
            {
                if (this.CurStyle == gf.SortBy.WordCount)
                {
                    str = " order by cjk_wordcount, cjk_strokecount";
                }
                else
                {
                    str = " order by cjk_strokecount";
                }
            }
            text3 += str;
            ListViewItem listViewItem = new ListViewItem();
            this.SongsList.BeginUpdate();
            try
            {
                Recordset recordSet = gf.GetRecordSet(gf.ConnectStringMainDB, text3);
                if (recordSet != null && !recordSet.EOF)
                {
                    ListViewItem[] array = new ListViewItem[recordSet.RecordCount];
                    int num = 0;
                    recordSet.MoveFirst();
                    while (!recordSet.EOF)
                    {
                        string musicTitle = gf.ObjToString(recordSet.Fields["Title_2"].Value);
                        int num2 = gf.ObjToInt(recordSet.Fields["song_number"].Value);
                        bool flag = gf.MusicFound(gf.ObjToString(recordSet.Fields["Title_1"].Value), musicTitle);
                        string text4 = gf.ObjToString(recordSet.Fields["LICENCE_ADMIN1"].Value);
                        string text5 = gf.ObjToString(recordSet.Fields["LICENCE_ADMIN2"].Value);
                        if ((InItemMusicOnly && flag) || !InItemMusicOnly)
                        {
                            array[num] = new ListViewItem(new string[]
							{
								gf.ObjToString(recordSet.Fields["Title_1"].Value) + (flag ? " <#>" : ""),
								"D" + gf.ObjToString(recordSet.Fields["SongID"].Value),
								"",
								"",
								num2.ToString(),
								text4,
								text5
							});
                            num++;
                        }
                        recordSet.MoveNext();
                    }
                    this.SongsList.Items.AddRange(array);
                }
            }
            catch
            {
            }
            this.SongsList.EndUpdate();
            this.ShowStatusBarSummary();
        }
        private int GetImagesPanelWidth()
        {
            return (this.SongsList.Width - 25 - 5 * (gf.ThumbImagesPerRow - 1)) / gf.ThumbImagesPerRow;
        }
        private void SongFolder_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!this.InitFormLoad)
            {
                this.SongFolder_Change();
            }
        }
        private void ImagesFolder_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.ShowPicturesFolderThumbs();
        }
        private void ShowPicturesFolderThumbs()
        {
            if (!this.InitFormLoad)
            {
                this.BackgroundCurImagePath = "";
                this.BackgroundTotalImagesCount = 0;
                if (this.ImagesFolder.Items.Count > 0)
                {
                    this.BackgroundCurImagePath = gf.PictureGroups[this.ImagesFolder.SelectedIndex, 1];
                    string[] array = new string[]
					{
						".jpg",
						".jpeg",
						".bmp",
						".gif",
						".ico"
					};
                    for (int i = 0; i < 1024; i++)
                    {
                        this.BackgroundImagename[i] = "";
                    }
                    ListBox listBox = new ListBox();
                    listBox.Items.Clear();
                    listBox.Sorted = false;
                    this.BackgroundTotalImagesCount = 0;
                    if (this.BackgroundCurImagePath != "")
                    {
                        for (int j = 0; j <= 4; j++)
                        {
                            try
                            {
                                string[] files = Directory.GetFiles(this.BackgroundCurImagePath, "*" + array[j]);
                                string[] array2 = files;
                                for (int k = 0; k < array2.Length; k++)
                                {
                                    string item = array2[k];
                                    listBox.Items.Add(item);
                                }
                            }
                            catch
                            {
                            }
                        }
                    }
                    listBox.Sorted = true;
                    this.BackgroundTotalImagesCount = listBox.Items.Count;
                    for (int i = 0; i < ((this.BackgroundTotalImagesCount < 1024) ? this.BackgroundTotalImagesCount : 1023); i++)
                    {
                        this.BackgroundImagename[i] = listBox.Items[i].ToString();
                    }
                    this.FormatBackgroundThumbContainers();
                    listBox.Dispose();
                }
            }
        }
        private void FormatBackgroundThumbContainers()
        {
            if (!(this.ImagesFolder.Text == ""))
            {
                gf.ThumbImagesPerRow = 3;
                int height = this.SongsList.Height;
                this.flowLayoutImages.Controls.Clear();
                for (int i = 0; i < this.BackgroundTotalImagesCount; i++)
                {
                    if (this.BackgroundImagesCanvas[i] == null)
                    {
                        this.BackgroundImagesCanvas[i] = new ImageCanvas();
                        this.BackgroundImagesCanvas[i].Tag = i.ToString();
                        this.BackgroundImagesCanvas[i].MouseUp += new MouseEventHandler(this.ThumbImage_MouseUp);
                    }
                    this.flowLayoutImages.Controls.Add(this.BackgroundImagesCanvas[i]);
                    this.BackgroundImagesCanvas[i].Visible = false;
                }
                this.LoadBackgroundThumbImages();
            }
        }
        private void LoadBackgroundThumbImages()
        {
            this.LoadThumbImages(this.flowLayoutImages, ref this.BackgroundImagesCanvas, this.BackgroundImagename, this.BackgroundTotalImagesCount, this.tabControlSource.Width - 15, "", 0, this.toolTip1, false);
        }
        private void LoadThumbImages(FlowLayoutPanel InFlowPanel, ref ImageCanvas[] InCanvas, string[] ImageName, int TotalImagesCount, int PanelWidth, string InPrefix, int CurSelectedSlide, ToolTip InToolTip, bool ExternalPP)
        {
            if (InCanvas != null)
            {
                Color backColor = InFlowPanel.BackColor;
                int num = (PanelWidth - 35) / 3;
                int newHeight = num * 3 / 4;
                for (int i = 0; i < TotalImagesCount; i++)
                {
                    InCanvas[i].BuildNewImageThumbs(i, num, newHeight, ref ImageName, TotalImagesCount, InPrefix, CurSelectedSlide, backColor, InToolTip, ExternalPP);
                }
                try
                {
                    InFlowPanel.ScrollControlIntoView(InCanvas[CurSelectedSlide - 1]);
                }
                catch
                {
                }
            }
        }
        private void ShowPowerpointFolderContents(bool ShowThumbs)
        {
            this.Cursor = Cursors.WaitCursor;
            this.ExternalPPCurImagePath = "";
            this.ExternalPPTotalImagesCount = 0;
            this.PowerpointList.Items.Clear();
            if (this.PowerpointFolder.Items.Count > 0)
            {
                this.ExternalPPCurImagePath = gf.PowerpointGroups[this.PowerpointFolder.SelectedIndex, 1];
                for (int i = 0; i < 1024; i++)
                {
                    this.ExternalPPImagename[i] = "";
                }
                ListBox listBox = new ListBox();
                ListViewItem listViewItem = new ListViewItem();
                listBox.Items.Clear();
                listBox.Sorted = false;
                this.ExternalPPTotalImagesCount = 0;
                if (this.ExternalPPCurImagePath != "")
                {
                    try
                    {
                        string[] files = Directory.GetFiles(this.ExternalPPCurImagePath, "*.ppt");
                        string[] array = files;
                        for (int j = 0; j < array.Length; j++)
                        {
                            string item = array[j];
                            listBox.Items.Add(item);
                        }
                    }
                    catch
                    {
                    }
                }
                listBox.Sorted = true;
                this.ExternalPPTotalImagesCount = listBox.Items.Count;
                string text = "";
                for (int i = 0; i < ((this.ExternalPPTotalImagesCount < 1024) ? this.ExternalPPTotalImagesCount : 1023); i++)
                {
                    if (gf.PowerpointListingStyle == 0)
                    {
                        text = listBox.Items[i].ToString();
                        listViewItem = this.PowerpointList.Items.Add(gf.GetDisplayNameOnly(ref text, false, false));
                        listViewItem.SubItems.Add("P" + listBox.Items[i]);
                    }
                    else
                    {
                        this.ExternalPPImagename[i] = listBox.Items[i].ToString();
                    }
                }
                this.SetPowerpointListColWidth();
                if (gf.PowerpointListingStyle == 1)
                {
                    gf.ExtPPrefix_Num++;
                    if (!Directory.Exists(gf.ExtPPrefix + gf.ExtPPrefix_Num.ToString() + "\\"))
                    {
                        gf.MakeDir(gf.ExtPPrefix + gf.ExtPPrefix_Num.ToString() + "\\");
                    }
                    gf.ExternalPPT.BuildFirstScreenDump(this.ExternalPPImagename, listBox.Items.Count, gf.ExtPPrefix + gf.ExtPPrefix_Num.ToString() + "\\");
                    this.FormatExternalPowerpointThumbContainers();
                }
                this.SetPowerpointListColWidth();
                listBox.Dispose();
                this.Cursor = Cursors.Default;
            }
        }
        private void FormatExternalPowerpointThumbContainers()
        {
            gf.ThumbImagesPerRow = 3;
            int height = this.SongsList.Height;
            this.flowLayoutExternalPowerPoint.Controls.Clear();
            this.PowerpointCurPreview = "";
            for (int i = 0; i < this.ExternalPPTotalImagesCount; i++)
            {
                if (this.Powerpoint_ExternalCanvas[i] == null)
                {
                    this.Powerpoint_ExternalCanvas[i] = new ImageCanvas();
                    this.Powerpoint_ExternalCanvas[i].Tag = i.ToString();
                    this.Powerpoint_ExternalCanvas[i].FileName = "";
                    this.Powerpoint_ExternalCanvas[i].MouseUp += new MouseEventHandler(this.ExternalFilesPP_MouseUp);
                    this.Powerpoint_ExternalCanvas[i].DoubleClick += new EventHandler(this.ExternalFilesPP_DoubleClick);
                }
                else
                {
                    this.Powerpoint_ExternalCanvas[i].FileName = "";
                }
                this.flowLayoutExternalPowerPoint.Controls.Add(this.Powerpoint_ExternalCanvas[i]);
            }
            this.LoadExternalPowerpointThumbImages(0);
        }
        private void LoadExternalPowerpointThumbImages(int GotoSlide)
        {
            this.LoadThumbImages(this.flowLayoutExternalPowerPoint, ref this.Powerpoint_ExternalCanvas, this.ExternalPPImagename, this.ExternalPPTotalImagesCount, this.tabControlSource.Width - 10, "", GotoSlide, this.toolTip1, true);
        }
        private void toolStripImages1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
        }
        private void tabControlSource_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabImages"))
            {
                if (this.ImagesFolder.Items.Count > 0 & this.ImagesFolder.Text == "")
                {
                    this.ImagesFolder.SelectedIndex = 0;
                    gf.TabSourceImagesChanged = false;
                }
                if (gf.TabSourceImagesChanged)
                {
                    this.FormatBackgroundThumbContainers();
                    gf.TabSourceImagesChanged = false;
                }
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
                {
                    if (this.InfoScreenFolder.Items.Count > 0 & this.InfoScreenFolder.Text == "")
                    {
                        this.InfoScreenFolder.SelectedIndex = 0;
                        gf.TabSourceExternalFilesChanged = false;
                    }
                    if (gf.TabSourceExternalFilesChanged)
                    {
                    }
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabMedia"))
                    {
                        if (this.MediaFolder.Items.Count > 0 & this.MediaFolder.Text == "")
                        {
                            this.MediaFolder.SelectedIndex = 0;
                            gf.TabSourceMediaFolderFilesChanged = false;
                        }
                        if (gf.TabSourceMediaFolderFilesChanged)
                        {
                        }
                    }
                    else
                    {
                        if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                        {
                            if (this.PowerpointFolder.Items.Count > 0 & this.PowerpointFolder.Text == "")
                            {
                                this.PowerpointFolder.SelectedIndex = 0;
                                gf.TabSourceExternalFilesChanged = false;
                            }
                            if (gf.TabSourceExternalFilesChanged)
                            {
                                this.FormatExternalPowerpointThumbContainers();
                                gf.TabSourceExternalFilesChanged = false;
                            }
                        }
                    }
                }
            }
            this.ShowStatusBarSummary();
        }
        private void BookLookup_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.BookLookupChanged();
        }
        private void BookLookupChanged()
        {
            if (!this.HB_SearchInProgress)
            {
                this.Cursor = Cursors.WaitCursor;
                if (this.BookLookup.Items.Count > 66)
                {
                    this.BookLookup.Items.RemoveAt(66);
                }
                this.BibleText.Text = "";
                this.BibleUserLookup.Text = "";
                gf.LoadBiblePassagesFromTabIndex(this.TabBibleVersions.SelectedIndex, this.BookLookup, ref this.BibleText, gf.HB_ShowVerses);
                gf.HB_SequentialListing = true;
                this.ShowStatusBarSummary();
                this.Cursor = Cursors.Default;
            }
        }
        private void Bibles_ShowVerses_Click(object sender, EventArgs e)
        {
        }
        private void TabBibleVersionsChanged()
        {
            if (this.TabBibleVersions.Enabled)
            {
                if (this.BookLookup.SelectedIndex == 66)
                {
                    this.HB_SearchInProgress = true;
                }
                if (gf.LoadBibleBooksList(this.TabBibleVersions, ref this.BookLookup, this.HB_SearchInProgress, null))
                {
                    gf.HB_CurVersionTabIndex = this.TabBibleVersions.SelectedIndex;
                    if (this.BookLookup.SelectedIndex == 66 & gf.HB_SQLString == "")
                    {
                        this.Cursor = Cursors.WaitCursor;
                        gf.RefreshBiblePassages(gf.HB_CurVersionTabIndex, this.BookLookup, ref this.BibleText, gf.HB_ShowVerses);
                        this.Cursor = Cursors.Default;
                    }
                    this.HB_ReselectSame();
                }
                else
                {
                    this.BibleText.Text = "";
                }
                this.HB_SearchInProgress = false;
                this.ShowStatusBarSummary();
            }
        }
        private void HB_ReselectSame()
        {
            if (!(this.BibleText.Text == "" | this.HB_CurSelectedPassages == ""))
            {
                try
                {
                    string hB_CurSelectedPassages = this.HB_CurSelectedPassages;
                    gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';');
                    gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';');
                    gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';');
                    int num = gf.StringToInt(gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';'));
                    int num2 = gf.StringToInt(gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';'));
                    int num3 = gf.StringToInt(gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';'));
                    int num4 = gf.StringToInt(gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';'));
                    int num5 = gf.StringToInt(gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';'));
                    int num6 = num;
                    while (hB_CurSelectedPassages != "")
                    {
                        num6 = Convert.ToInt32(gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';'));
                        gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';');
                        gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';');
                        num4 = gf.StringToInt(gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';'));
                        num5 = gf.StringToInt(gf.ExtractOneInfo(ref hB_CurSelectedPassages, ';'));
                    }
                    this.BibleText.Focus();
                    for (int i = 1; i <= gf.HB_VersesLocation[0, 0]; i++)
                    {
                        if (gf.HB_VersesLocation[i, 1] == num & gf.HB_VersesLocation[i, 2] == num2 & gf.HB_VersesLocation[i, 3] == num3)
                        {
                            this.BibleText.SelectionStart = gf.HB_VersesLocation[i, 4];
                            for (int j = i; j <= gf.HB_VersesLocation[0, 0]; j++)
                            {
                                if (gf.HB_VersesLocation[j, 1] == num6 & gf.HB_VersesLocation[j, 2] == num4 & gf.HB_VersesLocation[j, 3] == num5)
                                {
                                    this.BibleText.SelectionLength = gf.HB_VersesLocation[j, 4] - gf.HB_VersesLocation[i, 4] + gf.HB_VersesLocation[j, 5] - 2;
                                    this.BibleText.ScrollToCaret();
                                    j = gf.HB_VersesLocation[0, 0];
                                }
                            }
                            i = gf.HB_VersesLocation[0, 0];
                        }
                    }
                    this.HB_StartBuildStringProcess();
                }
                catch
                {
                }
            }
        }
        private bool HB_StartBuildStringProcess()
        {
            bool result;
            if (gf.HB_TotalVersions >= 1)
            {
                this.HB_CurSelectedTitle = "";
                this.HB_CurSelectedPassages = this.HB_BuildSelectionString(this.TabBibleVersions.SelectedIndex, ref this.HB_CurSelectedTitle);
                this.HB_SelectedPassagesChanged(this.HB_CurSelectedPassages, ref this.HB_CurSelectedTitle);
                this.HB_CurSelectedFormat = "";
                this.BibleText.Focus();
                result = true;
            }
            else
            {
                this.HB_CurSelectedPassages = "";
                this.HB_CurSelectedTitle = "";
                this.BibleText.Focus();
                result = false;
            }
            return result;
        }
        private string HB_BuildSelectionString(int InBibleVersion, ref string OutputTitle)
        {
            string result;
            if (this.BibleText.Text != "")
            {
                string displayNameOnly = gf.GetDisplayNameOnly(ref gf.HB_Versions[InBibleVersion, 4], false, true);
                int num = 0;
                int num2 = 0;
                int num3 = this.BibleText.SelectionStart + 2;
                int num4 = num3 + this.BibleText.SelectionLength;
                if (num3 >= 0)
                {
                    for (int i = 1; i <= gf.HB_VersesLocation[0, 0]; i++)
                    {
                        if (num3 >= gf.HB_VersesLocation[i, 4] & num3 <= gf.HB_VersesLocation[i, 4] + gf.HB_VersesLocation[i, 5])
                        {
                            num = i;
                            for (int j = i; j <= gf.HB_VersesLocation[0, 0]; j++)
                            {
                                if (num4 >= gf.HB_VersesLocation[j, 4] & num4 <= gf.HB_VersesLocation[j, 4] + gf.HB_VersesLocation[j, 5])
                                {
                                    num2 = j;
                                    j = 3002;
                                }
                            }
                            i = 3002;
                        }
                    }
                }
                int num5 = num2 - num + 1;
                if (gf.HB_SequentialListing)
                {
                    if (num5 > gf.HB_MaxVersesSelection)
                    {
                        num2 = num + gf.HB_MaxVersesSelection - 1;
                    }
                }
                else
                {
                    if (num5 > gf.HB_MaxAdhocVersesSelection)
                    {
                        num2 = num + gf.HB_MaxAdhocVersesSelection - 1;
                    }
                }
                if (num >= 0)
                {
                    this.BibleText.SelectionStart = gf.HB_VersesLocation[num, 4];
                    if (num2 < 0)
                    {
                        num2 = num;
                    }
                    this.BibleText.SelectionLength = gf.HB_VersesLocation[num2, 4] - gf.HB_VersesLocation[num, 4] + gf.HB_VersesLocation[num2, 5] - 2;
                }
                this.BibleText.ScrollToCaret();
                string text3;
                if (gf.HB_SequentialListing)
                {
                    string text = Convert.ToString(gf.HB_VersesLocation[num, 2]) + ":" + Convert.ToString(gf.HB_VersesLocation[num, 3]);
                    string text2 = " - " + Convert.ToString(gf.HB_VersesLocation[num2, 2]) + ":" + Convert.ToString(gf.HB_VersesLocation[num2, 3]);
                    if (gf.HB_VersesLocation[num, 2] == gf.HB_VersesLocation[num2, 2])
                    {
                        if (gf.HB_VersesLocation[num, 3] == gf.HB_VersesLocation[num2, 3])
                        {
                            text2 = "";
                        }
                        else
                        {
                            text2 = "-" + Convert.ToString(gf.HB_VersesLocation[num2, 3]);
                        }
                    }
                    OutputTitle = string.Concat(new string[]
					{
						gf.LookUpBookName(InBibleVersion, gf.HB_VersesLocation[num, 1]),
						" ",
						text,
						text2,
						" (",
						gf.HB_Versions[InBibleVersion, 1],
						")"
					});
                    text3 = string.Concat(new object[]
					{
						"0",
						';',
						displayNameOnly,
						';',
						';'
					});
                    for (int i = num; i <= num2; i++)
                    {
                        int num6 = i;
                        while (gf.HB_VersesLocation[i, 2] == gf.HB_VersesLocation[num6, 2] & i <= num2)
                        {
                            i++;
                        }
                        int j = i - 1;
                        object obj = text3;
                        text3 = string.Concat(new object[]
						{
							obj,
							Convert.ToString(gf.HB_VersesLocation[num6, 1]),
							';',
							Convert.ToString(gf.HB_VersesLocation[num6, 2]),
							';',
							Convert.ToString(gf.HB_VersesLocation[num6, 3]),
							';',
							Convert.ToString(gf.HB_VersesLocation[j, 2]),
							';',
							Convert.ToString(gf.HB_VersesLocation[j, 3]),
							';'
						});
                        i = j;
                    }
                }
                else
                {
                    text3 = string.Concat(new object[]
					{
						"1",
						';',
						displayNameOnly,
						';',
						';'
					});
                    for (int i = num; i <= num2; i++)
                    {
                        string text4 = OutputTitle;
                        OutputTitle = string.Concat(new string[]
						{
							text4,
							gf.Trim(gf.Left(gf.LookUpBookName(InBibleVersion, gf.HB_VersesLocation[i, 1]), 4)),
							" ",
							Convert.ToString(gf.HB_VersesLocation[i, 2]),
							":",
							Convert.ToString(gf.HB_VersesLocation[i, 3]),
							","
						});
                        object obj = text3;
                        text3 = string.Concat(new object[]
						{
							obj,
							Convert.ToString(gf.HB_VersesLocation[i, 1]),
							';',
							Convert.ToString(gf.HB_VersesLocation[i, 2]),
							';',
							Convert.ToString(gf.HB_VersesLocation[i, 3]),
							';',
							Convert.ToString(gf.HB_VersesLocation[i, 2]),
							';',
							Convert.ToString(gf.HB_VersesLocation[i, 3]),
							';'
						});
                    }
                    OutputTitle = gf.Left(OutputTitle, OutputTitle.Length - 1);
                    if (OutputTitle.Length > 60)
                    {
                        OutputTitle = gf.Left(OutputTitle, 60) + " .. ";
                    }
                    OutputTitle = OutputTitle + " (" + gf.HB_Versions[InBibleVersion, 1] + ")";
                }
                result = text3;
            }
            else
            {
                result = "";
            }
            return result;
        }
        private void TabBibleVersions_Click(object sender, EventArgs e)
        {
            if (this.TabBibleVersions.SelectedIndex != gf.HB_CurVersionTabIndex)
            {
                this.TabBibleVersionsChanged();
            }
        }
        private void SessionList_Change()
        {
            gf.CurSession = this.SessionList.Text;
            this.Cursor = Cursors.WaitCursor;
            this.LoadWorshipList(0);
            this.WriteCurSession();
            if (gf.ShowRunning)
            {
                this.ValidateWorshipListItems(false);
                gf.PreLoadPowerpointFiles(ref gf.LivePP, ref gf.WorshipSongs);
            }
            this.Cursor = Cursors.Default;
        }
        private void WriteCurSession()
        {
            gf.SaveRegValue("config", "current_session", gf.CurSession);
        }
        private void WriteCurPraiseBook()
        {
            gf.SaveRegValue("config", "current_praisebook", gf.CurPraiseBook);
        }
        private void LoadWorshipList(int DataType)
        {
            string inFileName = gf.WorshipDir + gf.CurSession + ".esw";
            this.LoadWorshipList(DataType, inFileName);
        }
        private string LoadWorshipList(int DataType, string InFileName)
        {
            gf.StartPresAt = 0;
            string result = this.LoadIndexFile(DataType, InFileName, ref this.WorshipListItems, gf.UsageMode.Worship, ref gf.CurSessionNotes);
            this.PreviewNotes.Text = gf.CurSessionNotes;
            return result;
        }
        private void LoadPraiseBook(int DataType)
        {
            string inFileName = gf.PraiseBookDir + gf.CurPraiseBook + ".esp";
            this.LoadIndexFile(DataType, inFileName, ref this.PraiseBookItems, gf.UsageMode.PraiseBook, ref gf.CurPraiseBookNotes);
        }
        private string LoadIndexFile(int DataType, string InFileName, ref ListView InList, gf.UsageMode InMode, ref string InNotes)
        {
            string text = "";
            string result;
            try
            {
                XmlTextReader xmlTextReader = new XmlTextReader(InFileName);
                try
                {
                    bool flag = false;
                    bool flag2 = false;
                    bool flag3 = false;
                    xmlTextReader.Read();
                    while (xmlTextReader.Read() & !flag)
                    {
                        if (xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "EasiSlides")
                        {
                            flag = true;
                        }
                    }
                    if (!flag)
                    {
                        goto IL_426;
                    }
                    while (xmlTextReader.Read() & !flag2)
                    {
                        if (xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "ListItem")
                        {
                            flag2 = true;
                        }
                    }
                    if (!flag2)
                    {
                        if (xmlTextReader != null)
                        {
                            xmlTextReader.Close();
                        }
                        goto IL_454;
                    }
                    while (xmlTextReader.Read() & !flag3)
                    {
                        if (xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "ListHeader")
                        {
                            flag3 = true;
                        }
                    }
                    if (!flag3)
                    {
                        if (xmlTextReader != null)
                        {
                            xmlTextReader.Close();
                        }
                        goto IL_454;
                    }
                    string text2 = "";
                    string displayName = "";
                    string folderName = "";
                    string formatString = "";
                    xmlTextReader.Read();
                    gf.WorshipListIDOK = false;
                    if (!(xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "SystemID"))
                    {
                        if (xmlTextReader != null)
                        {
                            xmlTextReader.Close();
                        }
                        goto IL_454;
                    }
                    if (gf.SystemID == xmlTextReader.ReadElementContentAsString())
                    {
                        gf.WorshipListIDOK = true;
                    }
                    xmlTextReader.Read();
                    if (!(xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "FormatData"))
                    {
                        if (xmlTextReader != null)
                        {
                            xmlTextReader.Close();
                        }
                        goto IL_454;
                    }
                    text = xmlTextReader.ReadElementContentAsString();
                    if (DataType == 2)
                    {
                        result = text;
                        return result;
                    }
                    gf.LoadHeaderData(text, ref gf.HeaderData, '>');
                    if (DataType == 1)
                    {
                        gf.ApplyHeaderData();
                        if (InMode == gf.UsageMode.Worship)
                        {
                            this.UpdateDefaultFields();
                            this.UpdateDisplayPanelFields();
                        }
                        result = text;
                        return result;
                    }
                    gf.ApplyHeaderData();
                    InList.Items.Clear();
                    InNotes = "";
                    xmlTextReader.Read();
                    if (xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "Notes")
                    {
                        InNotes = xmlTextReader.ReadElementContentAsString();
                    }
                    Database daoDb = gf.GetDaoDb(gf.ConnectStringMainDB);
                    Recordset rs = null;
                    int index = 1;
                    while (xmlTextReader.Read())
                    {
                        XmlNodeType nodeType = xmlTextReader.NodeType;
                        if (nodeType != XmlNodeType.Element)
                        {
                            if (nodeType == XmlNodeType.EndElement)
                            {
                                if (text2 != "")
                                {
                                    if (InMode == gf.UsageMode.Worship)
                                    {
                                        this.WriteItemtoWorshipList(daoDb, rs, gf.Left(text2, 1), gf.Right(text2, text2.Length - 1), displayName, folderName, formatString, -1, index);
                                        index++;
                                    }
                                    else
                                    {
                                        this.WriteItemtoPraiseBook(daoDb, rs, gf.Left(text2, 1), gf.Right(text2, text2.Length - 1), displayName, folderName);
                                    }
                                    text2 = "";
                                    displayName = "";
                                    folderName = "";
                                    formatString = "";
                                }
                            }
                        }
                        else
                        {
                            string name = xmlTextReader.Name;
                            if (name != null)
                            {
                                if (!(name == "ItemID"))
                                {
                                    if (!(name == "Title1"))
                                    {
                                        if (!(name == "Folder"))
                                        {
                                            if (name == "FormatData")
                                            {
                                                formatString = xmlTextReader.ReadElementContentAsString();
                                            }
                                        }
                                        else
                                        {
                                            folderName = xmlTextReader.ReadElementContentAsString();
                                        }
                                    }
                                    else
                                    {
                                        displayName = xmlTextReader.ReadElementContentAsString();
                                    }
                                }
                                else
                                {
                                    text2 = xmlTextReader.ReadElementContentAsString();
                                }
                            }
                        }
                    }
                    if (xmlTextReader != null)
                    {
                        xmlTextReader.Close();
                    }
                }
                catch
                {
                    if (xmlTextReader != null)
                    {
                        xmlTextReader.Close();
                    }
                    goto IL_426;
                }
            }
            catch
            {
                goto IL_426;
            }
            this.LoadIndexFilePostAction(InMode);
            result = text;
            return result;
        IL_426:
            if (InMode == gf.UsageMode.Worship)
            {
                this.Load32WorshipList(DataType);
            }
            else
            {
                this.Load32PraiseBook(DataType);
            }
            result = "";
            return result;
        IL_454:
            this.LoadIndexFilePostAction(InMode);
            result = "";
            return result;
        }
        private void Load32WorshipList(int DataType)
        {
            gf.TotalMusicFiles = -1;
            string inFileName = gf.WorshipDir + gf.CurSession + ".esw";
            gf.LoadFileContents(inFileName, ref this.InContents);
            int num = gf.Load32HeaderData(inFileName, this.InContents, ref gf.HeaderData);
            if (num < 1)
            {
                this.InContents = "";
            }
            if (DataType != 2)
            {
                if (DataType == 1)
                {
                    gf.ApplyHeaderData();
                    this.UpdateDefaultFields();
                }
                else
                {
                    gf.ApplyHeaderData();
                    this.WorshipListItems.Items.Clear();
                    this.InContents = gf.Mid(this.InContents, num + 1, this.InContents.Length - num);
                    int num2 = 0;
                    int i = this.InContents.IndexOf(">");
                    try
                    {
                        Database daoDb = gf.GetDaoDb(gf.ConnectStringMainDB);
                        Recordset recordset = null;
                        while (i >= 0)
                        {
                            string text = gf.Trim(gf.Mid(this.InContents, num2, i - num2));
                            gf.SongFormatData = "";
                            int num3 = text.IndexOf('*');
                            if (num3 >= 0)
                            {
                                gf.SongFormatData = gf.Trim(gf.Right(text, text.Length - num3 - 1));
                                text = gf.Trim(gf.Left(text, num3));
                            }
                            if (text != "")
                            {
                                int num4 = text.IndexOf("\\");
                                string fNum_ID = gf.Mid(text, 1, num4 - 1);
                                int num5 = text.IndexOf("\\", num4 + 1);
                                int j = num5;
                                while (j >= 0)
                                {
                                    j = text.IndexOf("\\", j + 1);
                                    if (j >= 0)
                                    {
                                        num5 = j;
                                    }
                                }
                                if (num5 < 0)
                                {
                                    num5 = text.Length + 1;
                                }
                                string displayName = gf.Mid(text, num4 + 1, num5 - (num4 + 1));
                                string inSym = gf.Left(text, 1);
                                gf.WorshipListIDOK = true;
                                gf.Convertv32FormatString(ref gf.SongFormatData, '*');
                                this.WriteItemtoWorshipList(daoDb, recordset, inSym, fNum_ID, displayName, "", gf.SongFormatData, -1, 1);
                            }
                            num2 = i + 1;
                            i = this.InContents.IndexOf(">", num2);
                        }
                        if (recordset != null)
                        {
                            recordset.Close();
                        }
                    }
                    catch
                    {
                    }
                    this.LoadIndexFilePostAction(gf.UsageMode.Worship);
                }
            }
        }
        private void LoadIndexFilePostAction(gf.UsageMode InMode)
        {
            if (InMode == gf.UsageMode.Worship)
            {
                this.SetMainDefaultBackScreen();
                this.SetWorshipPraiseListColWidth();
                this.UpdateDefaultFields();
                this.UpdateDisplayPanelFields();
                this.UpdateDisplayPanelData(true);
                if (this.WorshipListItems.Items.Count > 0 & gf.PreviewItem.Source == gf.ItemSource.WorshipList)
                {
                    this.WorshipListItems.Items[0].Selected = true;
                    this.WorshipListIndexChanged();
                }
                else
                {
                    this.WorshipListIndexChanged();
                }
            }
            else
            {
                this.SetSortButtonPB(gf.PB_CJKGroupStyle);
                if (this.PraiseBookItems.Items.Count > 0)
                {
                    this.PraiseBookItems.Items[0].Selected = true;
                }
                this.SavePraiseBook();
            }
            this.Cursor = Cursors.Default;
        }
        private bool InsertIndexFileItems(string InFileName, ref ListView InList, int AddToLocation, ref string InNotes)
        {
            try
            {
                XmlTextReader xmlTextReader = new XmlTextReader(InFileName);
                try
                {
                    bool flag = false;
                    bool flag2 = false;
                    bool flag3 = false;
                    xmlTextReader.Read();
                    while (xmlTextReader.Read() & !flag)
                    {
                        if (xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "EasiSlides")
                        {
                            flag = true;
                        }
                    }
                    if (!flag)
                    {
                        goto IL_366;
                    }
                    while (xmlTextReader.Read() & !flag2)
                    {
                        if (xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "ListItem")
                        {
                            flag2 = true;
                        }
                    }
                    if (!flag2)
                    {
                        if (xmlTextReader != null)
                        {
                            xmlTextReader.Close();
                        }
                        goto IL_366;
                    }
                    while (xmlTextReader.Read() & !flag3)
                    {
                        if (xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "ListHeader")
                        {
                            flag3 = true;
                        }
                    }
                    if (!flag3)
                    {
                        if (xmlTextReader != null)
                        {
                            xmlTextReader.Close();
                        }
                        goto IL_366;
                    }
                    string text = "";
                    string displayName = "";
                    string folderName = "";
                    string formatString = "";
                    xmlTextReader.Read();
                    gf.WorshipListIDOK = false;
                    if (!(xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "SystemID"))
                    {
                        if (xmlTextReader != null)
                        {
                            xmlTextReader.Close();
                        }
                        goto IL_366;
                    }
                    if (gf.SystemID == xmlTextReader.ReadElementContentAsString())
                    {
                        gf.WorshipListIDOK = true;
                    }
                    xmlTextReader.Read();
                    if (!(xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "FormatData"))
                    {
                        if (xmlTextReader != null)
                        {
                            xmlTextReader.Close();
                        }
                        goto IL_366;
                    }
                    string text2 = xmlTextReader.ReadElementContentAsString();
                    xmlTextReader.Read();
                    if (xmlTextReader.NodeType == XmlNodeType.Element & xmlTextReader.Name == "Notes")
                    {
                        InNotes += xmlTextReader.ReadElementContentAsString();
                    }
                    Database daoDb = gf.GetDaoDb(gf.ConnectStringMainDB);
                    Recordset rs = null;
                    while (xmlTextReader.Read())
                    {
                        XmlNodeType nodeType = xmlTextReader.NodeType;
                        if (nodeType != XmlNodeType.Element)
                        {
                            if (nodeType == XmlNodeType.EndElement)
                            {
                                if (text != "")
                                {
                                    this.WriteItemtoWorshipList(daoDb, rs, gf.Left(text, 1), gf.Right(text, text.Length - 1), displayName, folderName, formatString, AddToLocation, 1);
                                    text = "";
                                    displayName = "";
                                    folderName = "";
                                    formatString = "";
                                    AddToLocation++;
                                }
                            }
                        }
                        else
                        {
                            string name = xmlTextReader.Name;
                            if (name != null)
                            {
                                if (!(name == "ItemID"))
                                {
                                    if (!(name == "Title1"))
                                    {
                                        if (!(name == "Folder"))
                                        {
                                            if (name == "FormatData")
                                            {
                                                formatString = xmlTextReader.ReadElementContentAsString();
                                            }
                                        }
                                        else
                                        {
                                            folderName = xmlTextReader.ReadElementContentAsString();
                                        }
                                    }
                                    else
                                    {
                                        displayName = xmlTextReader.ReadElementContentAsString();
                                    }
                                }
                                else
                                {
                                    text = xmlTextReader.ReadElementContentAsString();
                                }
                            }
                        }
                    }
                    if (xmlTextReader != null)
                    {
                        xmlTextReader.Close();
                    }
                }
                catch
                {
                    if (xmlTextReader != null)
                    {
                        xmlTextReader.Close();
                    }
                    goto IL_366;
                }
            }
            catch
            {
                goto IL_366;
            }
            bool result = true;
            return result;
        IL_366:
            result = false;
            return result;
        }

        private void WriteItemtoWorshipList(Database db, Recordset rs, string InSym, string FNum_ID, string DisplayName1, string FolderName, string FormatString, int AddToLocation, int index)
        {
            if (!(FNum_ID == ""))
            {

                ListViewItem listViewItem = new ListViewItem();
                string musicTitle = "";
                string musicTitle2 = gf.GetDisplayNameOnly(ref DisplayName1, false);
                string text = "";
                string text2 = "";
                string text3 = "0";
                if (InSym == "D")
                {
                    bool flag = false;
                    try
                    {
                        string fullSearchString;
                        if (gf.WorshipListIDOK)
                        {
                            fullSearchString = "select * from SONG where songid = " + FNum_ID + " AND FolderNo > 0 ";
                        }
                        else
                        {
                            fullSearchString = string.Concat(new object[]
							{
								"select * from SONG where LCase(Title_1) like \"",
								DisplayName1.ToLower(),
								"\"  AND FolderNo = ",
								gf.GetFolderNumber(FolderName)
							});
                        }
                        rs = gf.GetRecordSet(db, fullSearchString);
                        if (rs != null && !rs.EOF)
                        {
                            rs.MoveFirst();
                            if (gf.GetDataInt(rs, "FolderNo") > 0)
                            {
                                if (gf.FolderUse[gf.GetDataInt(rs, "FolderNo")] > 0)
                                {
                                    DisplayName1 = index + ". " + gf.GetDataString(rs, "Title_1");
                                    string copyRight = gf.GetDataString(rs, "COPYRIGHT"); ;
                                    if (copyRight != "")
                                        DisplayName1 += "  --> " + gf.GetDataString(rs, "COPYRIGHT");
                                    musicTitle = gf.GetDataString(rs, "Title_2");
                                    text = gf.GetDataString(rs, "LICENCE_ADMIN1");
                                    text2 = gf.GetDataString(rs, "LICENCE_ADMIN2");
                                    FolderName = gf.FolderName[gf.GetDataInt(rs, "FolderNo")];
                                    FNum_ID = "D" + gf.GetDataInt(rs, "songid");
                                    text3 = ((gf.GetDataString(rs, "song_number") != "") ? gf.GetDataString(rs, "song_number") : "0");
                                    flag = true;
                                }
                            }
                        }
                        //count++;
                        if (rs != null)
                        {
                            rs.Close();
                        }
                        if (!flag)
                        {
                            DisplayName1 += " <Error - Item Not Found>";
                            FNum_ID = "D0";
                        }
                    }
                    catch
                    {
                        FNum_ID = "D0";
                        DisplayName1 += " <Error - Item Not Found>";
                    }
                }
                else
                {
                    if (InSym == "P")
                    {
                        FNum_ID = "P" + DisplayName1;
                        gf.GetDisplayNameOnly(ref DisplayName1, true);
                    }
                    else
                    {
                        if (InSym == "B")
                        {
                            FNum_ID = "B" + FNum_ID;
                        }
                        else
                        {
                            if (InSym == "T")
                            {
                                FNum_ID = "T" + DisplayName1;
                                gf.GetDisplayNameOnly(ref DisplayName1, true);
                            }
                            else
                            {
                                if (InSym == "I")
                                {
                                    FNum_ID = "I" + DisplayName1;
                                    string text4 = "";
                                    gf.LoadIndividualData(ref gf.TempItem1, FNum_ID, "", 1, ref text4);
                                    musicTitle2 = gf.TempItem1.Title;
                                    musicTitle = gf.TempItem1.Title2;
                                    gf.GetDisplayNameOnly(ref DisplayName1, true);
                                }
                                else
                                {
                                    if (InSym == "W")
                                    {
                                        FNum_ID = "W" + DisplayName1;
                                        gf.GetDisplayNameOnly(ref DisplayName1, true);
                                    }
                                    else
                                    {
                                        if (InSym == "M")
                                        {
                                            FNum_ID = "M" + DisplayName1;
                                            gf.GetDisplayNameOnly(ref DisplayName1, true);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                if (DisplayName1 != "")
                {
                    if (gf.MusicFound(musicTitle2, musicTitle))
                    {
                        DisplayName1 += " <#>";
                    }
                    if (AddToLocation < 0)
                    {
                        listViewItem = this.WorshipListItems.Items.Add(DisplayName1);
                    }
                    else
                    {
                        try
                        {
                            listViewItem = this.WorshipListItems.Items.Insert(AddToLocation, DisplayName1);
                        }
                        catch
                        {
                            listViewItem = this.WorshipListItems.Items.Add(DisplayName1);
                        }
                    }
                    if (InSym == "D")
                    {
                        listViewItem.ImageIndex = 0;
                    }
                    else
                    {
                        if (InSym == "P")
                        {
                            listViewItem.ImageIndex = 11;
                        }
                        else
                        {
                            if (InSym == "B")
                            {
                                listViewItem.ImageIndex = 4;
                            }
                            else
                            {
                                if (InSym == "T")
                                {
                                    listViewItem.ImageIndex = 6;
                                }
                                else
                                {
                                    if (InSym == "I")
                                    {
                                        listViewItem.ImageIndex = 8;
                                    }
                                    else
                                    {
                                        if (InSym == "W")
                                        {
                                            listViewItem.ImageIndex = 12;
                                        }
                                        else
                                        {
                                            if (InSym == "M")
                                            {
                                                listViewItem.ImageIndex = 10;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    listViewItem.SubItems.Add(FNum_ID);
                    listViewItem.SubItems.Add(FormatString);
                    listViewItem.SubItems.Add(text3);
                    listViewItem.SubItems.Add(text);
                    listViewItem.SubItems.Add(text2);
                    listViewItem.SubItems.Add("");
                    listViewItem.SubItems.Add(FolderName);
                }
            }
        }
        private void SetMainDefaultBackScreen()
        {
            gf.SetDefaultBackScreen(ref this.PreviewScreen);
            gf.SetDefaultBackScreen(ref this.OutputScreen);
            if (gf.ShowRunning)
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_DefaultBackgroundChanged);
            }
        }
        private void SetWorshipPraiseListColWidth()
        {
            if (this.WorshipListItems.Columns.Count > 0)
            {
                this.WorshipListItems.Columns[0].Width = ((this.WorshipListItems.Width - 25 >= 0) ? (this.WorshipListItems.Width - 25) : 0);
            }
            if (this.PraiseBookItems.Items.Count > 0)
            {
                this.PraiseBookItems.Columns[2].Width = ((this.PraiseBookItems.Width - this.PraiseBookItems.Columns[1].Width - 25 >= 0) ? (this.PraiseBookItems.Width - this.PraiseBookItems.Columns[1].Width - 25) : 0);
            }
        }
        private void WorshipListIndexChanged()
        {
            this.WorshipListIndexChanged(0);
        }
        private void WorshipListIndexChanged(int StartingSlide)
        {
            this.WorshipListIndexChanged(StartingSlide, false);
        }
        private void WorshipListIndexChanged(int StartingSlide, bool GetFirstItem)
        {
            gf.PreviewItem.Source = gf.ItemSource.WorshipList;
            gf.TotalWorshipListItems = this.WorshipListItems.Items.Count;
            int num;
            if (GetFirstItem & gf.TotalWorshipListItems > 0)
            {
                this.WorshipListItems.Items[0].Selected = true;
                num = 0;
            }
            else
            {
                num = gf.GetSelectedIndex(this.WorshipListItems);
            }
            if (num >= 0)
            {
                string text = this.WorshipListItems.Items[num].SubItems[0].Text;
                string text2 = this.WorshipListItems.Items[num].SubItems[1].Text;
                gf.PreviewItem.InMainItemText = text;
                gf.PreviewItem.InSubItemItem1Text = text2;
                gf.PreviewItem.CurItemNo = num + 1;
                gf.PreviewItem.TotalItems = this.WorshipListItems.Items.Count;
                this.LoadItem(ref gf.PreviewItem, text2, this.WorshipListItems.Items[num].SubItems[2].Text, StartingSlide, ref text, true);
                this.UpdateDisplayPanelFields();
            }
            else
            {
                gf.InitialiseIndividualData(ref gf.PreviewItem);
                gf.LoadIndividualFormatData(ref gf.PreviewItem, "");
                this.AllowIndividualFormat(false);
                this.NoIndividualFormat();
                this.BuildVerseButtons(gf.PreviewItem, true);
                gf.PreviewItem.Format.ShowSlideTransition = 0;
                gf.PreviewItem.Format.ShowItemTransition = 0;
                this.ResetMainPictureBox(ref gf.PreviewItem);
                this.ClearLyrics(ref this.flowLayoutPreviewLyrics);
                this.UpdateDisplayPanelFields();
            }
        }
        private void SaveWorshipList()
        {
            this.SaveWorshipList(false);
        }
        private void SaveWorshipList(bool PreloadPowerpoint)
        {
            if (!this.UpdatingFormatFields)
            {
                gf.CurSession = this.SessionList.Text;
                for (int i = 1; i <= this.WorshipListItems.Items.Count; i++)
                {
                    gf.WorshipSongs[i, 2] = gf.RemoveMusicSym(gf.Trim(this.WorshipListItems.Items[i - 1].Text));
                    gf.WorshipSongs[i, 0] = gf.Trim(this.WorshipListItems.Items[i - 1].SubItems[1].Text);
                    gf.WorshipSongs[i, 1] = gf.Left(gf.WorshipSongs[i, 0], 1);
                    gf.WorshipSongs[i, 4] = gf.Trim(this.WorshipListItems.Items[i - 1].SubItems[2].Text);
                }
                gf.TotalWorshipListItems = this.WorshipListItems.Items.Count;
                gf.SaveIndexFile(gf.WorshipDir + gf.CurSession + ".esw", ref this.WorshipListItems, gf.UsageMode.Worship, true, "", gf.CurSessionNotes);
                if (PreloadPowerpoint)
                {
                    gf.PreLoadPowerpointFiles(ref gf.LivePP, ref gf.WorshipSongs);
                }
            }
        }
        private void LoadItem(ref gf.SongSettings InItem, string InIDString)
        {
            this.LoadItem(ref InItem, InIDString, "", 1);
        }
        private void LoadItem(ref gf.SongSettings InItem, string InIDString, string InFormatString, int StartingSlide)
        {
            string text = "";
            this.LoadItem(ref InItem, InIDString, InFormatString, StartingSlide, ref text, true);
        }
        private void LoadItem(ref gf.SongSettings InItem, string InIDString, string InFormatString, int StartingSlide, ref string InTitle, bool ScrollToCaret)
        {
            string prevTitle = "";
            string nextTitle = "";
            int num = gf.StartPresAt;
            if (this.WorshipListItems.Items.Count > 0)
            {
                if (!InItem.OutputStyleScreen)
                {
                    num = gf.GetSelectedIndex(this.WorshipListItems) + 1;
                }
                int num2;
                int num3;
                if (InItem.CurItemNo == 0)
                {
                    num2 = num - 1;
                    num3 = num;
                }
                else
                {
                    num2 = num - 2;
                    num3 = num;
                }
                if (num2 < 0 && InItem.CurItemNo == 0)
                {
                    num2 = 0;
                }
                if (num3 >= this.WorshipListItems.Items.Count)
                {
                    if (InItem.CurItemNo == 0)
                    {
                        num3 = this.WorshipListItems.Items.Count - 1;
                    }
                    else
                    {
                        num3 = -1;
                    }
                }
                if (num2 == num3)
                {
                    if (num2 == 0)
                    {
                        num2 = -1;
                    }
                }
                prevTitle = ((num2 >= 0) ? gf.RemoveMusicSym(this.WorshipListItems.Items[num2].SubItems[0].Text) : "");
                nextTitle = ((num3 >= 0) ? gf.RemoveMusicSym(this.WorshipListItems.Items[num3].SubItems[0].Text) : "");
            }
            string text = gf.Left(InIDString, 1);
            gf.InitialiseIndividualData(ref InItem, gf.GapMedia.None, text);
            InItem.PrevTitle = prevTitle;
            InItem.NextTitle = nextTitle;
            this.MakePowerpointPreviewVisible(InItem, text == "P");
            if (text == "P")
            {
                gf.LoadIndividualData(ref InItem, InIDString, "", StartingSlide);
                this.ValidatePowerpointItem(InItem);
                gf.LoadIndividualFormatData(ref InItem, "");
                this.AllowIndividualFormat(false);
                this.SetItemFontSettings(ref InItem);
                if (!InItem.OutputStyleScreen)
                {
                    this.UpdateFormatFields();
                }
                this.BuildAllPowerpointScreenDumps(ref InItem);
                InItem.CurSlide = StartingSlide;
                InItem.CurSlide = ((InItem.CurSlide < 1) ? 1 : ((InItem.CurSlide > InItem.TotalSlides) ? InItem.TotalSlides : InItem.CurSlide));
                if (InItem.OutputStyleScreen)
                {
                    this.ShowOutputPPThumbs(InItem.CurSlide);
                }
                else
                {
                    this.ShowPreviewPPThumbs(InItem.CurSlide);
                }
                InItem.Format.ShowItemTransition = 0;
                InItem.Format.ShowSlideTransition = 0;
                if (gf.ShowRunning & InItem.OutputStyleScreen)
                {
                    InItem.TotalSlides = gf.RunPowerpointSong(ref InItem, ref this.MainPPT, StartingSlide, true);
                    if (gf.DualMonitorMode)
                    {
                        this.ShowDualMonitorPP_Preview(ref InItem);
                    }
                }
                else
                {
                    this.PP_Preview(ref InItem);
                }
                this.ShowStatusBarSummary();
                this.BuildVerseButtons(InItem);
                this.DisplaySettingsLabel(InItem);
            }
            else
            {
                if (text == "D" || text == "B" || text == "T" || text == "I" || text == "W" || text == "M" || text == "G")
                {
                    Cursor.Current = Cursors.WaitCursor;
                    gf.LoadIndividualData(ref InItem, InIDString, "", StartingSlide, ref InTitle);
                    if (InItem.Source == gf.ItemSource.SongsList)
                    {
                        if (!InItem.OutputStyleScreen)
                        {
                            InFormatString = InItem.Format.DBStoredFormat;
                        }
                    }
                    else
                    {
                        if (text == "I" || text == "G")
                        {
                            InFormatString = InItem.Format.FormatString;
                        }
                    }
                    gf.LoadIndividualFormatData(ref InItem, InFormatString);
                    this.SetItemFontSettings(ref InItem);
                    gf.FormatDisplayLyrics(ref InItem, true, true);
                    if (InItem.OutputStyleScreen)
                    {
                        this.BuildVerseButtons(gf.OutputItem);
                        this.DisplayLyrics(gf.OutputItem, StartingSlide);
                    }
                    else
                    {
                        this.AllowIndividualFormat(true, !(InFormatString == ""));
                        this.UpdateFormatFields();
                        this.BuildVerseButtons(InItem);
                        this.DisplayLyrics(InItem, StartingSlide, ScrollToCaret);
                    }
                }
                else
                {
                    gf.LoadIndividualData(ref InItem, InIDString, "", StartingSlide, ref InTitle);
                    this.AllowIndividualFormat(true, !(InFormatString == ""));
                    if (InFormatString != "")
                    {
                        this.ApplyIndividualFormat(ref InItem);
                    }
                    this.UpdateFormatFields();
                    this.BuildVerseButtons(InItem);
                    this.DisplayLyrics(InItem, StartingSlide);
                }
            }
            if (InItem.OutputStyleScreen)
            {
                this.PostitionBlackClearGapLabels();
            }
            else
            {
                this.DisplayItemInfo(InItem, ref this.PreviewInfo);
                this.ShowStatusBarSummary();
            }
        }
        private void DisplayItemInfo(gf.SongSettings InItem, ref RichTextBox InTextBox)
        {
            InTextBox.Text = "";
            InTextBox.SelectionStart = 0;
            if (InItem.Type == "P" || InItem.Type == "W" || InItem.Type == "T" || InItem.Type == "I")
            {
                string itemID = InItem.ItemID;
                RichTextBox expr_77 = InTextBox;
                expr_77.Text = expr_77.Text + InItem.ItemID + "\n";
            }
            if (InItem.Title2 != "")
            {
                RichTextBox expr_AE = InTextBox;
                expr_AE.Text = expr_AE.Text + "Title2: " + InItem.Title2 + "\n";
            }
            if (InItem.Format.BackgroundPicture != "" && InItem.Type != "P")
            {
                if (InTextBox.Text != "")
                {
                    RichTextBox expr_11C = InTextBox;
                    expr_11C.Text += "\n";
                }
                RichTextBox expr_134 = InTextBox;
                expr_134.Text = expr_134.Text + "(Image: " + InItem.Format.BackgroundPicture + ")\n";
            }
            string text = (InItem.Format.MediaOption == 1 || InItem.Format.MediaOption == 2) ? gf.GetMediaLocation(InItem) : "";
            if (text != "")
            {
                RichTextBox expr_19A = InTextBox;
                expr_19A.Text = expr_19A.Text + "(Media: " + text + ")\n";
            }
            if (InItem.Writer != "")
            {
                RichTextBox expr_1D1 = InTextBox;
                expr_1D1.Text = expr_1D1.Text + "Writer: " + InItem.Writer + "\n";
            }
            if (InItem.Copyright != "")
            {
                RichTextBox expr_20D = InTextBox;
                expr_20D.Text = expr_20D.Text + "Copyright: " + InItem.Copyright + "\n";
            }
            if (InItem.Capo > 0 || InItem.MusicKey != "" || InItem.Timing != "")
            {
                this.KeyCapoText = ((InItem.MusicKey != "") ? ("Key: " + InItem.MusicKey + " ") : "") + ((InItem.Capo > 0) ? (" Capo " + Convert.ToString(InItem.Capo) + " ") : "") + ((InItem.Timing != "") ? (" (" + InItem.Timing + ")") : "");
                RichTextBox expr_2FB = InTextBox;
                expr_2FB.Text = expr_2FB.Text + this.KeyCapoText + "\n";
            }
            else
            {
                this.KeyCapoText = "";
            }
            if (InItem.Book_Reference != "")
            {
                RichTextBox expr_341 = InTextBox;
                expr_341.Text = expr_341.Text + "Book Ref: " + InItem.Book_Reference + "\n";
            }
            if (InItem.User_Reference != "")
            {
                RichTextBox expr_37D = InTextBox;
                expr_37D.Text = expr_37D.Text + "User Ref: " + InItem.User_Reference + "\n";
            }
        }
        private bool ValidatePowerpointItem(gf.SongSettings InItem)
        {
            bool result;
            if (File.Exists(InItem.Path))
            {
                result = true;
            }
            else
            {
                MessageBox.Show("Sorry - Can't find the Powerpoint File '" + InItem.Path + "'");
                InItem.Path = "";
                result = false;
            }
            return result;
        }
        private void BuildAllPowerpointScreenDumps(ref gf.SongSettings InItem)
        {
            string filePrefix = gf.SetPowerpointPreviewPrefix(InItem);
            if (InItem.OutputStyleScreen)
            {
                if (gf.OutputPPT.BuildScreenDumps(InItem.Path, filePrefix, ref InItem.TotalSlides, 9, 1000, ref InItem.SongVerses, ref InItem.Slide, gf.SequenceSymbol))
                {
                    this.FormatPowerPointThumbContainers(ref this.Powerpoint_OutputCanvas, ref this.flowLayoutOutputPowerPoint, InItem.TotalSlides);
                }
            }
            else
            {
                if (gf.PreviewPPT.BuildScreenDumps(InItem.Path, filePrefix, ref InItem.TotalSlides, 9, 1000, ref InItem.SongVerses, ref InItem.Slide, gf.SequenceSymbol))
                {
                    this.FormatPowerPointThumbContainers(ref this.Powerpoint_PreviewCanvas, ref this.flowLayoutPreviewPowerPoint, InItem.TotalSlides);
                }
            }
        }
        private void PP_Preview(ref gf.SongSettings InItem)
        {
            this.Cursor = Cursors.WaitCursor;
            InItem.Format.BackgroundPicture = (InItem.OutputStyleScreen ? gf.OUTPPFullPath : gf.PREPPFullPath) + InItem.CurSlide.ToString() + ".jpg";
            InItem.Format.BackgroundMode = gf.ImageMode.BestFit;
            InItem.UseDefaultFormat = false;
            if (InItem.OutputStyleScreen)
            {
                gf.SetShowBackground(InItem, ref this.OutputScreen);
            }
            else
            {
                gf.SetShowBackground(InItem, ref this.PreviewScreen);
            }
            this.SetItemFontSettings(ref InItem);
            gf.DrawText(ref InItem, ref this.PreviewScreen, ref this.OutputScreen, InItem.LyricsAndNotationsList);
            this.ShowStatusBarSummary();
            this.DisplaySettingsLabel(InItem);
            this.Cursor = Cursors.Default;
        }
        private void BuildVerseButtons(gf.SongSettings InItem)
        {
            this.BuildVerseButtons(InItem, false);
        }
        private void BuildVerseButtons(gf.SongSettings InItem, bool Reset)
        {
            if (InItem.OutputStyleScreen)
            {
                this.BuildOutputVerseButtons(Reset);
            }
            else
            {
                this.BuildPreviewVerseButtons(Reset);
            }
        }
        private void BuildOutputVerseButtons()
        {
            this.BuildOutputVerseButtons(false);
        }
        private void BuildOutputVerseButtons(bool Reset)
        {
            this.OutputBtnVersePreChorus.Visible = false;
            this.OutputBtnVersePreChorus2.Visible = false;
            this.OutputBtnVerseChorus.Visible = false;
            this.OutputBtnVerseChorus2.Visible = false;
            this.OutputBtnVerseBridge.Visible = false;
            this.OutputBtnVerseBridge2.Visible = false;
            this.OutputBtnVerseEnding.Visible = false;
            if (Reset)
            {
                this.OutputBtnVerse1.Visible = false;
                this.OutputBtnVerse2.Visible = false;
                this.OutputBtnVerse3.Visible = false;
                this.OutputBtnVerse4.Visible = false;
                this.OutputBtnVerse5.Visible = false;
                this.OutputBtnVerse6.Visible = false;
                this.OutputBtnVerse7.Visible = false;
                this.OutputBtnVerse8.Visible = false;
                this.OutputBtnVerse9.Visible = false;
            }
            else
            {
                this.OutputBtnVerse1.Visible = (gf.OutputItem.SongVerses[1] > 0);
                this.OutputBtnVerse2.Visible = (gf.OutputItem.SongVerses[2] > 0);
                this.OutputBtnVerse3.Visible = (gf.OutputItem.SongVerses[3] > 0);
                this.OutputBtnVerse4.Visible = (gf.OutputItem.SongVerses[4] > 0);
                this.OutputBtnVerse5.Visible = (gf.OutputItem.SongVerses[5] > 0);
                this.OutputBtnVerse6.Visible = (gf.OutputItem.SongVerses[6] > 0);
                this.OutputBtnVerse7.Visible = (gf.OutputItem.SongVerses[7] > 0);
                this.OutputBtnVerse8.Visible = (gf.OutputItem.SongVerses[8] > 0);
                this.OutputBtnVerse9.Visible = (gf.OutputItem.SongVerses[9] > 0);
                bool flag = false;
                bool flag2 = false;
                bool flag3 = false;
                bool flag4 = false;
                bool flag5 = false;
                bool flag6 = false;
                bool flag7 = false;
                for (int i = 1; i <= gf.OutputItem.TotalSlides; i++)
                {
                    if (gf.OutputItem.Slide[i, 0] == 111)
                    {
                        flag6 = true;
                    }
                    if (gf.OutputItem.Slide[i, 0] == 112)
                    {
                        flag7 = true;
                    }
                    if (gf.OutputItem.Slide[i, 0] == 0)
                    {
                        flag = true;
                    }
                    if (gf.OutputItem.Slide[i, 0] == 102)
                    {
                        flag4 = true;
                    }
                    if (gf.OutputItem.Slide[i, 0] == 100)
                    {
                        flag2 = true;
                    }
                    if (gf.OutputItem.Slide[i, 0] == 103)
                    {
                        flag3 = true;
                    }
                    if (gf.OutputItem.Slide[i, 0] == 101)
                    {
                        flag5 = true;
                    }
                }
                if (flag6)
                {
                    this.OutputBtnVersePreChorus.Visible = true;
                }
                if (flag7)
                {
                    this.OutputBtnVersePreChorus2.Visible = true;
                }
                if (flag)
                {
                    this.OutputBtnVerseChorus.Visible = true;
                }
                if (flag4)
                {
                    this.OutputBtnVerseChorus2.Visible = true;
                }
                if (flag2)
                {
                    this.OutputBtnVerseBridge.Visible = true;
                }
                if (flag3)
                {
                    this.OutputBtnVerseBridge2.Visible = true;
                }
                if (flag5)
                {
                    this.OutputBtnVerseEnding.Visible = true;
                }
            }
        }
        private void BuildPreviewVerseButtons()
        {
            this.BuildPreviewVerseButtons(false);
        }
        private void BuildPreviewVerseButtons(bool Reset)
        {
            this.PreviewBtnVersePreChorus.Visible = false;
            this.PreviewBtnVersePreChorus2.Visible = false;
            this.PreviewBtnVerseChorus.Visible = false;
            this.PreviewBtnVerseChorus2.Visible = false;
            this.PreviewBtnVerseBridge.Visible = false;
            this.PreviewBtnVerseBridge2.Visible = false;
            this.PreviewBtnVerseEnding.Visible = false;
            if (Reset)
            {
                this.PreviewBtnVerse1.Visible = false;
                this.PreviewBtnVerse2.Visible = false;
                this.PreviewBtnVerse3.Visible = false;
                this.PreviewBtnVerse4.Visible = false;
                this.PreviewBtnVerse5.Visible = false;
                this.PreviewBtnVerse6.Visible = false;
                this.PreviewBtnVerse7.Visible = false;
                this.PreviewBtnVerse8.Visible = false;
                this.PreviewBtnVerse9.Visible = false;
            }
            else
            {
                this.PreviewBtnVerse1.Visible = (gf.PreviewItem.SongVerses[1] > 0);
                this.PreviewBtnVerse2.Visible = (gf.PreviewItem.SongVerses[2] > 0);
                this.PreviewBtnVerse3.Visible = (gf.PreviewItem.SongVerses[3] > 0);
                this.PreviewBtnVerse4.Visible = (gf.PreviewItem.SongVerses[4] > 0);
                this.PreviewBtnVerse5.Visible = (gf.PreviewItem.SongVerses[5] > 0);
                this.PreviewBtnVerse6.Visible = (gf.PreviewItem.SongVerses[6] > 0);
                this.PreviewBtnVerse7.Visible = (gf.PreviewItem.SongVerses[7] > 0);
                this.PreviewBtnVerse8.Visible = (gf.PreviewItem.SongVerses[8] > 0);
                this.PreviewBtnVerse9.Visible = (gf.PreviewItem.SongVerses[9] > 0);
                bool flag = false;
                bool flag2 = false;
                bool flag3 = false;
                bool flag4 = false;
                bool flag5 = false;
                bool flag6 = false;
                bool flag7 = false;
                for (int i = 1; i <= gf.PreviewItem.TotalSlides; i++)
                {
                    if (gf.PreviewItem.Slide[i, 0] == 111)
                    {
                        flag6 = true;
                    }
                    if (gf.PreviewItem.Slide[i, 0] == 112)
                    {
                        flag7 = true;
                    }
                    if (gf.PreviewItem.Slide[i, 0] == 0)
                    {
                        flag = true;
                    }
                    if (gf.PreviewItem.Slide[i, 0] == 102)
                    {
                        flag4 = true;
                    }
                    if (gf.PreviewItem.Slide[i, 0] == 100)
                    {
                        flag2 = true;
                    }
                    if (gf.PreviewItem.Slide[i, 0] == 103)
                    {
                        flag3 = true;
                    }
                    if (gf.PreviewItem.Slide[i, 0] == 101)
                    {
                        flag5 = true;
                    }
                }
                if (flag6)
                {
                    this.PreviewBtnVersePreChorus.Visible = true;
                }
                if (flag7)
                {
                    this.PreviewBtnVersePreChorus2.Visible = true;
                }
                if (flag)
                {
                    this.PreviewBtnVerseChorus.Visible = true;
                }
                if (flag4)
                {
                    this.PreviewBtnVerseChorus2.Visible = true;
                }
                if (flag2)
                {
                    this.PreviewBtnVerseBridge.Visible = true;
                }
                if (flag3)
                {
                    this.PreviewBtnVerseBridge2.Visible = true;
                }
                if (flag5)
                {
                    this.PreviewBtnVerseEnding.Visible = true;
                }
            }
        }
        private void UpdateFormatData()
        {
            this.UpdateFormatData(true);
        }
        private void UpdateFormatData(bool StartAtFirstSlide)
        {
            this.UpdateFormatData(StartAtFirstSlide, ImageTransitionControl.TransitionAction.None);
        }
        private void UpdateFormatData(bool StartAtFirstSlide, ImageTransitionControl.TransitionAction TransitionAction)
        {
            gf.PreviewItem.Format.FormatString = ((!this.Ind_checkBox.Checked) ? "" : this.GetNewFormatString());
            if (gf.PreviewItem.Type == "I")
            {
                this.SaveInfoFilePreview(false);
            }
            if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
            {
                int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                if (selectedIndex < 0)
                {
                    return;
                }
                this.WorshipListItems.Items[selectedIndex].SubItems[2].Text = gf.PreviewItem.Format.FormatString;
                gf.SaveFormatStringToDatabase(gf.PreviewItem.ItemID, gf.PreviewItem.Format.FormatString);
                this.SaveWorshipList();
            }
            else
            {
                if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
                {
                    gf.SaveFormatStringToDatabase(gf.PreviewItem.ItemID, gf.PreviewItem.Format.FormatString);
                }
                else
                {
                    if (gf.PreviewItem.Source == gf.ItemSource.HolyBible)
                    {
                        this.HB_CurSelectedFormat = gf.PreviewItem.Format.FormatString;
                    }
                }
            }
            this.ShowSong(ref gf.PreviewItem, StartAtFirstSlide ? 0 : gf.PreviewItem.CurSlide, TransitionAction);
            this.FormatLyricsContainers(gf.PreviewItem);
        }
        private void AppyPreviewChangesToLive(int Selecteditem)
        {
            this.AppyPreviewChangesToLive(Selecteditem, true);
        }
        private void AppyPreviewChangesToLive(int Selecteditem, bool StartAtFirstSlide)
        {
            if (gf.OutputItem.CurItemNo == Selecteditem + 1)
            {
                gf.LoadIndividualFormatData(ref gf.OutputItem, gf.PreviewItem.Format.FormatString);
                gf.SetShowBackground(gf.OutputItem, ref this.OutputScreen);
                if (StartAtFirstSlide)
                {
                    if (gf.ShowRunning)
                    {
                        gf.MainAction_SongChanged_Transaction = ImageTransitionControl.TransitionAction.None;
                        this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SongChanged);
                    }
                }
                else
                {
                    gf.MainAction_SongChanged_Transaction = ImageTransitionControl.TransitionAction.None;
                    if (gf.ShowRunning)
                    {
                        this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_BackgroundChanged);
                    }
                }
                if (gf.OutputItem.ItemID != "")
                {
                    this.RefreshSlidesFonts(ref gf.OutputItem);
                    if (StartAtFirstSlide)
                    {
                        this.ShowSong(ref gf.OutputItem);
                        this.FormatLyricsContainers(gf.OutputItem);
                    }
                }
            }
        }
        private string GetNewFormatString()
        {
            int num = gf.PreviewItem.Format.ShowFontBold[0] + gf.PreviewItem.Format.ShowFontItalic[0] * 2 + gf.PreviewItem.Format.ShowFontUnderline[0] * 4 + gf.PreviewItem.Format.ShowFontBold[2] * 8 + gf.PreviewItem.Format.ShowFontItalic[2] * 16 + gf.PreviewItem.Format.ShowFontUnderline[2] * 32;
            int num2 = gf.PreviewItem.Format.ShowFontBold[1] + gf.PreviewItem.Format.ShowFontItalic[1] * 2 + gf.PreviewItem.Format.ShowFontUnderline[1] * 4 + gf.PreviewItem.Format.ShowFontBold[3] * 8 + gf.PreviewItem.Format.ShowFontItalic[3] * 16 + gf.PreviewItem.Format.ShowFontUnderline[3] * 32;
            int num3 = gf.PreviewItem.Format.MediaMute + gf.PreviewItem.Format.MediaRepeat * 2 + gf.PreviewItem.Format.MediaWidescreen * 4;
            int num4 = gf.PreviewItem.Format.UseShadowFont * 2 + gf.PreviewItem.Format.ShowNotations * 4 + gf.PreviewItem.Format.ShowInterlace * 16 + gf.PreviewItem.Format.UseOutlineFont * 32 + gf.PreviewItem.Format.HideDisplayPanel * 64;
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(21),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowSongHeadings),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(23),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowSongHeadingsAlign),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(22),
				"=",
				num4.ToString(),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(25),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowLyrics),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(26),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowScreenColour[0].ToArgb()),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(27),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowScreenColour[1].ToArgb()),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(28),
				"=",
				gf.PreviewItem.Format.ShowScreenStyle.ToString(),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(29),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowFontColour[0].ToArgb()),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(30),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowFontColour[1].ToArgb()),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(31),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowFontAlign[0]),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(32),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowFontAlign[1]),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(41),
				"=",
				num.ToString(),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(42),
				"=",
				num2.ToString(),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(43),
				"=",
				gf.PreviewItem.Format.ShowFontName[0],
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(44),
				"=",
				gf.PreviewItem.Format.ShowFontName[1],
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(45),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowFontVPosition[0]),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(46),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowFontVPosition[1]),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(47),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowFontSize[0]),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(48),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowFontSize[1]),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(50),
				"=",
				Convert.ToString(gf.PreviewItem.Format.MediaOption),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(51),
				"=",
				gf.PreviewItem.Format.MediaLocation,
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(52),
				"=",
				Convert.ToString(gf.PreviewItem.Format.MediaVolume),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(53),
				"=",
				Convert.ToString(gf.PreviewItem.Format.MediaBalance),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(54),
				"=",
				num3.ToString(),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(55),
				"=",
				Convert.ToString(gf.PreviewItem.Format.MediaCaptureDeviceNumber),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(61),
				"=",
				gf.PreviewItem.Format.BackgroundPicture,
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(62),
				"=",
				Convert.ToString((int)gf.PreviewItem.Format.BackgroundMode),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(63),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowVerticalAlign),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(64),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowLeftMargin),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(65),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowRightMargin),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(66),
				"=",
				Convert.ToString(gf.PreviewItem.Format.ShowBottomMargin),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(71),
				"=",
				Convert.ToString(gf.PreviewItem.Format.TransposeOffset),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(72),
				"=",
				this.PreviewScreen.GetTransitionText(gf.PreviewItem.Format.ShowItemTransition),
				'>'
			}));
            stringBuilder.Append(string.Concat(new object[]
			{
				Convert.ToString(73),
				"=",
				this.PreviewScreen.GetTransitionText(gf.PreviewItem.Format.ShowSlideTransition),
				'>'
			}));
            return stringBuilder.ToString();
        }
        private void UpdateFormatFields()
        {
            this.UpdatingFormatFields = true;
            string name;
            if (gf.PreviewItem.Format.ShowSongHeadings == 0)
            {
                name = this.Ind_HeadNoTitles.Name;
            }
            else
            {
                if (gf.PreviewItem.Format.ShowSongHeadings == 1)
                {
                    name = this.Ind_HeadAllTitles.Name;
                }
                else
                {
                    name = this.Ind_HeadFirstScreen.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Ind_Head, name, this.Ind_HeadNoTitles, this.Ind_HeadAllTitles, this.Ind_HeadFirstScreen);
            if (gf.PreviewItem.Format.ShowSongHeadingsAlign == 1)
            {
                name = this.Ind_HeadAlignAsR2.Name;
            }
            else
            {
                if (gf.PreviewItem.Format.ShowSongHeadingsAlign == 2)
                {
                    name = this.Ind_HeadAlignLeft.Name;
                }
                else
                {
                    if (gf.PreviewItem.Format.ShowSongHeadingsAlign == 3)
                    {
                        name = this.Ind_HeadAlignCentre.Name;
                    }
                    else
                    {
                        if (gf.PreviewItem.Format.ShowSongHeadingsAlign == 4)
                        {
                            name = this.Ind_HeadAlignRight.Name;
                        }
                        else
                        {
                            name = this.Ind_HeadAlignAsR1.Name;
                        }
                    }
                }
            }
            gf.AssignDropDownItem(ref this.Ind_HeadAlign, name, this.Ind_HeadAlignAsR1, this.Ind_HeadAlignAsR2, this.Ind_HeadAlignLeft, this.Ind_HeadAlignCentre, this.Ind_HeadAlignRight);
            this.Ind_Shadow.Checked = (gf.PreviewItem.Format.UseShadowFont == 1);
            this.Ind_Outline.Checked = (gf.PreviewItem.Format.UseOutlineFont == 1);
            if (gf.PreviewItem.Format.ShowLyrics == 0)
            {
                name = this.Ind_ShowRegion1.Name;
            }
            else
            {
                if (gf.PreviewItem.Format.ShowLyrics == 1)
                {
                    name = this.Ind_ShowRegion2.Name;
                }
                else
                {
                    name = this.Ind_ShowRegionBoth.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Ind_Region, name, this.Ind_ShowRegion1, this.Ind_ShowRegion2, this.Ind_ShowRegionBoth);
            if (gf.PreviewItem.Format.ShowVerticalAlign == 0)
            {
                name = this.Ind_VAlignTop.Name;
            }
            else
            {
                if (gf.PreviewItem.Format.ShowVerticalAlign == 1)
                {
                    name = this.Ind_VAlignCentre.Name;
                }
                else
                {
                    name = this.Ind_VAlignBottom.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Ind_VAlign, name, this.Ind_VAlignTop, this.Ind_VAlignCentre, this.Ind_VAlignBottom);
            this.Ind_Interlace.Checked = (gf.PreviewItem.Format.ShowInterlace == 1);
            this.Ind_Notations.Checked = (gf.PreviewItem.Format.ShowNotations == 1);
            this.Ind_HideDisplayPanel.Checked = (gf.PreviewItem.Format.HideDisplayPanel == 1);
            this.Ind_LeftUpDown.Value = gf.PreviewItem.Format.ShowLeftMargin;
            this.Ind_RightUpDown.Value = gf.PreviewItem.Format.ShowRightMargin;
            gf.UpdatePosUpDowns(ref this.Ind_Reg1TopUpDown, ref this.Ind_Reg2TopUpDown, ref this.Ind_BottomUpDown, ref gf.PreviewItem.Format.ShowFontVPosition[0], ref gf.PreviewItem.Format.ShowFontVPosition[1], gf.PreviewItem.Format.ShowBottomMargin);
            if (gf.PreviewItem.Format.BackgroundMode == gf.ImageMode.Tile)
            {
                name = this.Ind_ImageTile.Name;
            }
            else
            {
                if (gf.PreviewItem.Format.BackgroundMode == gf.ImageMode.Centre)
                {
                    name = this.Ind_ImageCentre.Name;
                }
                else
                {
                    name = this.Ind_ImageBestFit.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Ind_ImageMode, name, this.Ind_ImageTile, this.Ind_ImageCentre, this.Ind_ImageBestFit);
            this.Ind_NoImage.Enabled = (gf.PreviewItem.Format.BackgroundPicture != "");
            this.Ind_BackColour.ForeColor = gf.PreviewItem.Format.ShowScreenColour[0];
            this.Ind_R1Bold.Checked = (gf.PreviewItem.Format.ShowFontBold[0] > 0);
            if (gf.PreviewItem.Format.ShowFontItalic[0] > 0 && gf.PreviewItem.Format.ShowFontItalic[2] > 0)
            {
                name = this.Ind_R1Italics1.Name;
            }
            else
            {
                if (gf.PreviewItem.Format.ShowFontItalic[2] > 0)
                {
                    name = this.Ind_R1Italics2.Name;
                }
                else
                {
                    name = this.Ind_R1Italics0.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Ind_R1Italics, name, this.Ind_R1Italics0, this.Ind_R1Italics1, this.Ind_R1Italics2);
            this.Ind_R1Underline.Checked = (gf.PreviewItem.Format.ShowFontUnderline[0] > 0);
            if (gf.PreviewItem.Format.ShowFontAlign[0] == 1)
            {
                name = this.Ind_R1AlignLeft.Name;
            }
            else
            {
                if (gf.PreviewItem.Format.ShowFontAlign[0] == 2)
                {
                    name = this.Ind_R1AlignCentre.Name;
                }
                else
                {
                    name = this.Ind_R1AlignRight.Name;
                }
            }
            this.Ind_R1Colour.ForeColor = gf.PreviewItem.Format.ShowFontColour[0];
            gf.AssignDropDownItem(ref this.Ind_R1Align, name, this.Ind_R1AlignLeft, this.Ind_R1AlignCentre, this.Ind_R1AlignRight);
            this.Ind_Reg1FontsList.Text = gf.PreviewItem.Format.ShowFontName[0];
            this.Ind_Reg1SizeUpDown.Value = gf.PreviewItem.Format.ShowFontSize[0];
            this.Ind_R2Bold.Checked = (gf.PreviewItem.Format.ShowFontBold[1] > 0);
            if (gf.PreviewItem.Format.ShowFontItalic[1] > 0 && gf.PreviewItem.Format.ShowFontItalic[3] > 0)
            {
                name = this.Ind_R2Italics1.Name;
            }
            else
            {
                if (gf.PreviewItem.Format.ShowFontItalic[3] > 0)
                {
                    name = this.Ind_R2Italics2.Name;
                }
                else
                {
                    name = this.Ind_R2Italics0.Name;
                }
            }
            gf.AssignDropDownItem(ref this.Ind_R2Italics, name, this.Ind_R2Italics0, this.Ind_R2Italics1, this.Ind_R2Italics2);
            this.Ind_R2Underline.Checked = (gf.PreviewItem.Format.ShowFontUnderline[1] > 0);
            if (gf.PreviewItem.Format.ShowFontAlign[1] == 1)
            {
                name = this.Ind_R2AlignLeft.Name;
            }
            else
            {
                if (gf.PreviewItem.Format.ShowFontAlign[1] == 2)
                {
                    name = this.Ind_R2AlignCentre.Name;
                }
                else
                {
                    name = this.Ind_R2AlignRight.Name;
                }
            }
            this.Ind_R2Colour.ForeColor = gf.PreviewItem.Format.ShowFontColour[1];
            gf.AssignDropDownItem(ref this.Ind_R2Align, name, this.Ind_R2AlignLeft, this.Ind_R2AlignCentre, this.Ind_R2AlignRight);
            this.Ind_Reg2FontsList.Text = gf.PreviewItem.Format.ShowFontName[1];
            this.Ind_Reg2SizeUpDown.Value = gf.PreviewItem.Format.ShowFontSize[1];
            this.Ind_TransItem.SelectedIndex = gf.PreviewItem.Format.ShowItemTransition;
            this.Ind_TransSlides.SelectedIndex = gf.PreviewItem.Format.ShowSlideTransition;
            this.AssignMediaText(ref this.Ind_AssignMedia, gf.PreviewItem.Format.MediaOption);
            this.UpdatingFormatFields = false;
        }
        private void DisplayLyrics(gf.SongSettings InItem, int StartingSlide)
        {
            this.DisplayLyrics(InItem, StartingSlide, ImageTransitionControl.TransitionAction.AsStored);
        }
        private void DisplayLyrics(gf.SongSettings InItem, int StartingSlide, ImageTransitionControl.TransitionAction TransitionAction)
        {
            this.DisplayLyrics(InItem, StartingSlide, true, 2, TransitionAction);
        }
        private void DisplayLyrics(gf.SongSettings InItem, int StartingSlide, bool ScrollToCaret)
        {
            this.DisplayLyrics(InItem, StartingSlide, ScrollToCaret, 2, ImageTransitionControl.TransitionAction.AsStored);
        }
        private void DisplayLyrics(gf.SongSettings InItem, int StartingSlide, bool ScrollToCaret, int GapItemBackground)
        {
            this.DisplayLyrics(InItem, StartingSlide, ScrollToCaret, GapItemBackground, ImageTransitionControl.TransitionAction.AsStored);
        }
        private void DisplayLyrics(gf.SongSettings InItem, int StartingSlide, bool ScrollToCaret, int GapItemBackground, ImageTransitionControl.TransitionAction TransitionAction)
        {
            if (!this.InitFormLoad)
            {
                bool flag = true;
                this.DisplaySettingsLabel(InItem);
                if (StartingSlide > 0)
                {
                    TransitionAction = ImageTransitionControl.TransitionAction.None;
                }
                if (InItem.Type == "P")
                {
                    this.ResetMainPictureBox(ref InItem);
                }
                else
                {
                    if (InItem.Type == "D")
                    {
                        if (gf.EasiSlidesMode == gf.UsageMode.Worship)
                        {
                            InItem.CurSlide = StartingSlide;
                            this.ShowSlide(ref InItem, TransitionAction);
                        }
                        else
                        {
                            gf.FormatDisplayLyrics(ref InItem, true, true);
                        }
                    }
                    else
                    {
                        if (InItem.Type == "B" || InItem.Type == "T" || InItem.Type == "I" || InItem.Type == "W" || InItem.Type == "G")
                        {
                            if (gf.EasiSlidesMode == gf.UsageMode.Worship)
                            {
                                InItem.CurSlide = StartingSlide;
                                this.ShowSlide(ref InItem, TransitionAction);
                            }
                        }
                        else
                        {
                            if (InItem.Type == "M" || InItem.Type == "G")
                            {
                                if (gf.EasiSlidesMode == gf.UsageMode.Worship)
                                {
                                    InItem.CurSlide = 1;
                                    this.ShowSlide(ref InItem, TransitionAction);
                                }
                            }
                            else
                            {
                                this.ResetMainPictureBox(ref InItem, gf.GapType.Default, ImageTransitionControl.TransitionAction.None);
                                if (InItem.OutputStyleScreen)
                                {
                                    this.ClearLyrics(ref this.flowLayoutOutputLyrics);
                                }
                                else
                                {
                                    this.ClearLyrics(ref this.flowLayoutPreviewLyrics);
                                }
                                flag = false;
                            }
                        }
                    }
                }
                if (flag)
                {
                    this.FormatLyricsContainers(InItem);
                }
                this.ShowStatusBarSummary();
            }
        }
        private void ResetMainPictureBox(ref gf.SongSettings InItem)
        {
            gf.GapType gapItemBackground = gf.GapType.Default;
            this.ResetMainPictureBox(ref InItem, gapItemBackground, ImageTransitionControl.TransitionAction.None);
        }
        private void ResetMainPictureBox(ref gf.SongSettings InItem, gf.GapType GapItemBackground, ImageTransitionControl.TransitionAction TransitionAction)
        {
            if (InItem.OutputStyleScreen)
            {
                gf.ResetPictureBox(ref InItem, ref this.OutputScreen, GapItemBackground, TransitionAction);
            }
            else
            {
                gf.ResetPictureBox(ref InItem, ref this.PreviewScreen, GapItemBackground, TransitionAction);
            }
            this.DisplaySettingsLabel(InItem);
            this.ShowStatusBarSummary();
        }
        private bool ShowSlide(ref gf.SongSettings InItem, ImageTransitionControl.TransitionAction TransitionAction)
        {
            return this.ShowSlide(ref InItem, TransitionAction, false);
        }
        private bool ShowSlide(ref gf.SongSettings InItem, ImageTransitionControl.TransitionAction TransitionAction, bool DoActiveIndicator)
        {
            bool result;
            if (InItem.Type == "P")
            {
                if (InItem.OutputStyleScreen)
                {
                    if (gf.ShowRunning)
                    {
                        this.MainPPT.ImplementPowerpointSlideMovement(ref InItem.CurSlide, InItem.TotalSlides, Keys.None, InItem.CurSlide);
                        this.ShowDualMonitorPP_Preview(ref InItem);
                        if (InItem.CurSlide < 1)
                        {
                            InItem.CurSlide = InItem.TotalSlides;
                        }
                        this.ShowStatusBarSummary();
                    }
                    else
                    {
                        this.PP_Preview(ref InItem);
                    }
                }
                else
                {
                    this.PP_Preview(ref InItem);
                }
                result = true;
            }
            else
            {
                InItem.TotalItems = this.WorshipListItems.Items.Count;
                if (TransitionAction == ImageTransitionControl.TransitionAction.AsStored)
                {
                }
                if (gf.ShowDBSlide(ref InItem, ref this.PreviewScreen, ref this.OutputScreen, DoActiveIndicator, TransitionAction))
                {
                    result = true;
                }
                else
                {
                    this.ResetMainPictureBox(ref InItem);
                    result = false;
                }
            }
            return result;
        }
        private void SongsList_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Control && e.KeyCode == Keys.A)
            {
                this.SongsList_SelectAll();
            }
            else
            {
                if (e.Control && e.KeyCode == Keys.C)
                {
                    this.Copy_Song();
                }
                else
                {
                    if (e.KeyCode == Keys.Delete)
                    {
                        this.RemoveSongsListSong();
                        this.SongsList.Focus();
                    }
                    else
                    {
                        if (e.Control && e.Alt && e.KeyCode == Keys.V)
                        {
                            gf.ShowDebugVideoMessages = !gf.ShowDebugVideoMessages;
                            MessageBox.Show("Video Debug Message Turned " + (gf.ShowDebugVideoMessages ? "On" : "Off"));
                        }
                        else
                        {
                            this.SongsListIndexChanged(1, false);
                            this.SongsList.Focus();
                        }
                    }
                }
            }
        }
        private void SongsList_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                this.SongsListIndexChanged();
            }
            else
            {
                if (e.Button == MouseButtons.Right)
                {
                    ListViewItem itemAt = this.SongsList.GetItemAt(e.X, e.Y);
                    string itemName = "";
                    if (itemAt != null)
                    {
                        itemAt.Selected = true;
                        this.SongsListIndexChanged();
                    }
                    gf.GetSelectedIndex(this.SongsList, ref itemName);
                    gf.SetMenuItem(ref this.CMenuSongs_Edit, itemName, "Edit Item", "Edit", true);
                    this.CMenuSongs.Show(this.SongsList, e.X, e.Y);
                }
            }
            this.SongsList.Focus();
        }
        private void SongsListIndexChanged()
        {
            this.SongsListIndexChanged(1);
        }
        private void SongsListIndexChanged(int StartingSlide)
        {
            this.SongsListIndexChanged(StartingSlide, true);
        }
        private void SongsListIndexChanged(int StartingSlide, bool ScrollToCaret)
        {
            if (this.LastSelectedSongsListItem[0] == null)
            {
                this.LastSelectedSongsListItem[0] = "";
            }
            if (this.LastSelectedSongsListItem[1] == null)
            {
                this.LastSelectedSongsListItem[1] = "";
            }
            gf.PreviewItem.Source = gf.ItemSource.SongsList;
            int selectedIndex = gf.GetSelectedIndex(this.SongsList);
            if (selectedIndex >= 0)
            {
                string text = this.SongsList.Items[selectedIndex].SubItems[1].Text;
                string text2 = this.SongsList.Items[selectedIndex].SubItems[0].Text;
                gf.PreviewItem.InMainItemText = text2;
                gf.PreviewItem.InSubItemItem1Text = text;
                gf.PreviewItem.CurItemNo = 0;
                this.LoadItem(ref gf.PreviewItem, text, "", StartingSlide, ref text2, ScrollToCaret);
                this.UpdateDisplayPanelFields();
            }
            else
            {
                gf.PreviewItem.Type = "";
                gf.PreviewItem.Title = "";
                gf.PreviewItem.ItemID = "";
                gf.PreviewItem.CurItemNo = 0;
                gf.LoadIndividualFormatData(ref gf.PreviewItem, "");
                this.AllowIndividualFormat(false);
                this.UpdateFormatFields();
                this.BuildVerseButtons(gf.PreviewItem);
                this.DisplayLyrics(gf.PreviewItem, 0, true);
                this.UpdateDisplayPanelFields();
            }
        }
        private void EnableEditHistory()
        {
            gf.LoadRegistryMainEditHistory();
            this.UpdateMenuEditHistory();
        }
        private void AddToEditHistory(string InItemID)
        {
            if (!(gf.GetItemTitle(InItemID) == "" | gf.MainEditHistoryList[1, 0] == InItemID))
            {
                if (gf.TotalMainEditHistory < gf.MaxUserEditHistory)
                {
                    gf.TotalMainEditHistory++;
                }
                else
                {
                    gf.TotalMainEditHistory = gf.MaxUserEditHistory;
                }
                for (int i = gf.TotalMainEditHistory; i >= 2; i--)
                {
                    gf.MainEditHistoryList[i, 0] = gf.MainEditHistoryList[i - 1, 0];
                }
                gf.MainEditHistoryList[1, 0] = InItemID;
                gf.RemoveDuplicateEditorHistoryItems(ref gf.MainEditHistoryList, ref gf.TotalMainEditHistory);
                this.UpdateMenuEditHistory();
                gf.SaveMainEditHistoryToRegistry();
            }
        }
        private void UpdateMenuEditHistory()
        {
            try
            {
                int num = 0;
                for (int i = 1; i <= gf.TotalMainEditHistory; i++)
                {
                    string itemTitle = gf.GetItemTitle(gf.MainEditHistoryList[i, 0]);
                    if (itemTitle != "")
                    {
                        if (gf.MainEditHistoryList[num, 0] != gf.MainEditHistoryList[i, 0])
                        {
                            num++;
                            gf.MainEditHistoryList[num, 0] = gf.MainEditHistoryList[i, 0];
                            gf.MainEditHistoryList[num, 1] = itemTitle;
                        }
                    }
                }
                gf.TotalMainEditHistory = num;
                for (int i = gf.TotalMainEditHistory + 1; i <= gf.AbsoluteMaxHitoryItems; i++)
                {
                    gf.MainEditHistoryList[i, 0] = "";
                    gf.MainEditHistoryList[i, 1] = "";
                }
                for (int i = 1; i <= gf.AbsoluteMaxHitoryItems; i++)
                {
                    this.Menu_EditHistoryList.DropDownItems[i - 1].Text = i.ToString() + " " + gf.MainEditHistoryList[i, 1];
                    if (i > gf.TotalMainEditHistory)
                    {
                        this.Menu_EditHistoryList.DropDownItems[i - 1].Visible = false;
                    }
                    else
                    {
                        this.Menu_EditHistoryList.DropDownItems[i - 1].Visible = true;
                        string a = gf.Left(gf.MainEditHistoryList[i, 0], 1);
                        if (a == "D")
                        {
                            this.Menu_EditHistoryList.DropDownItems[i - 1].Image = Resources.ES_16;
                        }
                        else
                        {
                            if (a == "P")
                            {
                                this.Menu_EditHistoryList.DropDownItems[i - 1].Image = Resources.PPImg;
                            }
                            else
                            {
                                if (a == "B")
                                {
                                    this.Menu_EditHistoryList.DropDownItems[i - 1].Image = Resources.Bible;
                                }
                                else
                                {
                                    if (a == "T")
                                    {
                                        this.Menu_EditHistoryList.DropDownItems[i - 1].Image = Resources.notebook;
                                    }
                                    else
                                    {
                                        if (a == "I")
                                        {
                                            this.Menu_EditHistoryList.DropDownItems[i - 1].Image = Resources.Info_Icon;
                                        }
                                        else
                                        {
                                            if (a == "W")
                                            {
                                                this.Menu_EditHistoryList.DropDownItems[i - 1].Image = Resources.word;
                                            }
                                            else
                                            {
                                                this.Menu_EditHistoryList.DropDownItems[i - 1].Image = null;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            catch
            {
            }
        }
        private void Menu_EditHistory_Click(object sender, EventArgs e)
        {
            try
            {
                ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)sender;
                int num = gf.ObjToInt(toolStripMenuItem.Tag) + 1;
                this.Edit_Item(gf.MainEditHistoryList[num, 0]);
            }
            catch
            {
            }
        }
        private void SessionList_SelectedValueChanged(object sender, EventArgs e)
        {
            if (!this.InitFormLoad)
            {
                this.SessionList_Change();
            }
        }
        private void ThumbImage_MouseUp(object sender, MouseEventArgs e)
        {
            Control control = (Control)sender;
            this.ThumbImageClicked = Convert.ToInt32(control.Tag);
            if (e.Button == MouseButtons.Left)
            {
                this.ApplyBackground(this.ThumbImageClicked, 2);
            }
            else
            {
                if (e.Button == MouseButtons.Right)
                {
                    Point position = control.PointToClient(Cursor.Position);
                    this.CMenuImages.Show(control, position);
                }
            }
        }
        private void ApplyBackground(int ImageTag, int InMode)
        {
            string directoryName = Path.GetDirectoryName(this.BackgroundImagename[ImageTag]);
            int backgroundImageMode = -1;
            if (directoryName == gf.RootEasiSlidesDir + "Images\\Scenery")
            {
                backgroundImageMode = 2;
            }
            else
            {
                if (directoryName == gf.RootEasiSlidesDir + "Images\\Tiles")
                {
                    backgroundImageMode = 0;
                }
            }
            this.ApplyBackground(this.BackgroundImagename[ImageTag], InMode, backgroundImageMode);
            this.UpdateBackgroundImageButtons(InMode, backgroundImageMode);
        }
        private void UpdateBackgroundImageButtons(int InMode, int BackgroundImageMode)
        {
            if (BackgroundImageMode >= 0 && BackgroundImageMode <= 2)
            {
                if (InMode == 1 || InMode == 2)
                {
                    string text = "";
                    if (!this.Ind_checkBox.Checked)
                    {
                        if (BackgroundImageMode.ToString() == this.Ind_ImageTile.Tag.ToString())
                        {
                            text = "Ind_ImageTile";
                        }
                        else
                        {
                            if (BackgroundImageMode.ToString() == this.Ind_ImageCentre.Tag.ToString())
                            {
                                text = "Ind_ImageCentre";
                            }
                            else
                            {
                                if (BackgroundImageMode.ToString() == this.Ind_ImageBestFit.Tag.ToString())
                                {
                                    text = "Ind_ImageBestFit";
                                }
                            }
                        }
                        if (text != "")
                        {
                            gf.AssignDropDownItem(ref this.Ind_ImageMode, text, this.Ind_ImageTile, this.Ind_ImageCentre, this.Ind_ImageBestFit);
                        }
                    }
                }
                if (InMode == 0 || InMode == 2)
                {
                    string text = "";
                    if (BackgroundImageMode.ToString() == this.Def_ImageTile.Tag.ToString())
                    {
                        text = "Def_ImageTile";
                    }
                    else
                    {
                        if (BackgroundImageMode.ToString() == this.Def_ImageCentre.Tag.ToString())
                        {
                            text = "Def_ImageCentre";
                        }
                        else
                        {
                            if (BackgroundImageMode.ToString() == this.Def_ImageBestFit.Tag.ToString())
                            {
                                text = "Def_ImageBestFit";
                            }
                        }
                    }
                    if (text != "")
                    {
                        gf.AssignDropDownItem(ref this.Def_ImageMode, text, this.Def_ImageTile, this.Def_ImageCentre, this.Def_ImageBestFit);
                    }
                }
                this.UpdateDefaultNoImageButton();
            }
        }
        private void ApplyBackground(string InImageFileName)
        {
            this.ApplyBackground(InImageFileName, 2, -1);
        }
        private void ApplyBackground(string InImageFileName, int InMode, int BackgroundImageMode)
        {
            if (InMode == 0)
            {
                gf.BackgroundPicture = InImageFileName;
                if (BackgroundImageMode >= 0 & BackgroundImageMode < 3)
                {
                    gf.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                    gf.PreviewItem.Format.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                    gf.OutputItem.Format.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                }
                this.SaveWorshipList();
                this.WorshipListIndexChanged(gf.PreviewItem.CurSlide);
                gf.SetShowBackground(gf.OutputItem, ref this.OutputScreen);
                this.DisplayLyrics(gf.OutputItem, gf.OutputItem.CurSlide);
                if (gf.ShowRunning)
                {
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_BackgroundChanged);
                }
            }
            else
            {
                if (InMode == 1 | InMode == 2)
                {
                    if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
                    {
                        int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                        if (selectedIndex >= 0)
                        {
                            for (int i = 0; i <= this.WorshipListItems.Items.Count - 1; i++)
                            {
                                if (this.WorshipListItems.Items[i].Selected)
                                {
                                    if (gf.Left(this.WorshipListItems.Items[i].SubItems[1].Text, 1) == "D" | gf.Left(this.WorshipListItems.Items[i].SubItems[1].Text, 1) == "B" | gf.Left(this.WorshipListItems.Items[i].SubItems[1].Text, 1) == "T" | gf.Left(this.WorshipListItems.Items[i].SubItems[1].Text, 1) == "M" | gf.Left(this.WorshipListItems.Items[i].SubItems[1].Text, 1) == "W")
                                    {
                                        gf.PreviewItem.Format.BackgroundPicture = InImageFileName;
                                        if (BackgroundImageMode >= 0 & BackgroundImageMode < 3)
                                        {
                                            gf.PreviewItem.Format.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                                        }
                                        gf.PreviewItem.Format.FormatString = this.GetNewFormatString();
                                        this.WorshipListItems.Items[i].SubItems[2].Text = gf.PreviewItem.Format.FormatString;
                                    }
                                    else
                                    {
                                        if (gf.Left(this.WorshipListItems.Items[i].SubItems[1].Text, 1) == "I")
                                        {
                                            gf.PreviewItem.Format.BackgroundPicture = InImageFileName;
                                            if (BackgroundImageMode >= 0 & BackgroundImageMode < 3)
                                            {
                                                gf.PreviewItem.Format.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                                            }
                                            gf.PreviewItem.UseDefaultFormat = false;
                                            gf.PreviewItem.Format.FormatString = this.GetNewFormatString();
                                            gf.SetShowBackground(gf.PreviewItem, ref this.PreviewScreen);
                                            gf.DrawText(ref gf.PreviewItem, ref this.PreviewScreen, gf.PreviewItem.LyricsAndNotationsList, false, false);
                                            this.AllowIndividualFormat(true, true);
                                            this.UpdateFormatFields();
                                            this.SaveInfoFilePreview(true);
                                        }
                                    }
                                }
                            }
                            this.SaveWorshipList();
                            this.WorshipListIndexChanged(gf.PreviewItem.CurSlide);
                        }
                        else
                        {
                            if (InMode == 2)
                            {
                                gf.BackgroundPicture = InImageFileName;
                                if (BackgroundImageMode >= 0 & BackgroundImageMode < 3)
                                {
                                    gf.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                                    gf.OutputItem.Format.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                                }
                                this.SaveWorshipList();
                                this.WorshipListIndexChanged(gf.PreviewItem.CurSlide);
                                gf.SetShowBackground(gf.OutputItem, ref this.OutputScreen);
                                this.DisplayLyrics(gf.OutputItem, gf.OutputItem.CurSlide, ImageTransitionControl.TransitionAction.None);
                                if (gf.ShowRunning)
                                {
                                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_BackgroundChanged);
                                }
                            }
                        }
                    }
                    else
                    {
                        if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
                        {
                            int selectedIndex = gf.GetSelectedIndex(this.SongsList);
                            if (selectedIndex >= 0)
                            {
                                gf.PreviewItem.Format.BackgroundPicture = InImageFileName;
                                if (BackgroundImageMode >= 0 & BackgroundImageMode < 3)
                                {
                                    gf.PreviewItem.Format.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                                }
                                gf.SaveFormatStringToDatabase(gf.PreviewItem.ItemID, this.GetNewFormatString());
                                this.SongsListIndexChanged(gf.PreviewItem.CurSlide);
                            }
                        }
                        else
                        {
                            if (gf.PreviewItem.Source == gf.ItemSource.HolyBible)
                            {
                                if (gf.PreviewItem.CompleteLyrics != "")
                                {
                                    gf.PreviewItem.Format.BackgroundPicture = InImageFileName;
                                    if (BackgroundImageMode >= 0 & BackgroundImageMode < 3)
                                    {
                                        gf.PreviewItem.Format.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                                    }
                                    gf.PreviewItem.UseDefaultFormat = false;
                                    gf.PreviewItem.Format.FormatString = this.GetNewFormatString();
                                    this.HB_CurSelectedFormat = gf.PreviewItem.Format.FormatString;
                                    gf.SetShowBackground(gf.PreviewItem, ref this.PreviewScreen);
                                    gf.DrawText(ref gf.PreviewItem, ref this.PreviewScreen, gf.PreviewItem.LyricsAndNotationsList, false, false);
                                    this.AllowIndividualFormat(true, true);
                                    this.UpdateFormatFields();
                                }
                            }
                            else
                            {
                                if (gf.PreviewItem.Source == gf.ItemSource.ExternalFileInfoScreen)
                                {
                                    if (gf.PreviewItem.CompleteLyrics != "")
                                    {
                                        gf.PreviewItem.Format.BackgroundPicture = InImageFileName;
                                        if (BackgroundImageMode >= 0 & BackgroundImageMode < 3)
                                        {
                                            gf.PreviewItem.Format.BackgroundMode = (gf.ImageMode)BackgroundImageMode;
                                        }
                                        gf.PreviewItem.UseDefaultFormat = false;
                                        gf.PreviewItem.Format.FormatString = this.GetNewFormatString();
                                        gf.PreviewItem.Format.TempImageFileName = gf.PreviewItem.Format.BackgroundPicture;
                                        gf.SetShowBackground(gf.PreviewItem, ref this.PreviewScreen);
                                        gf.DrawText(ref gf.PreviewItem, ref this.PreviewScreen, gf.PreviewItem.LyricsAndNotationsList, false, false);
                                        this.AllowIndividualFormat(true, true);
                                        this.UpdateFormatFields();
                                        this.SaveInfoFilePreview(true);
                                    }
                                }
                            }
                        }
                    }
                }
            }
            this.Def_NoImage.Enabled = (gf.BackgroundPicture != "");
            this.Ind_NoImage.Enabled = (gf.PreviewItem.Format.BackgroundPicture != "");
            this.UpdateWorshipShowIcons();
            this.UpdateDefaultNoImageButton();
            if (gf.PreviewItem.Type == "D")
            {
                gf.SaveFormatStringToDatabase(gf.PreviewItem.ItemID, gf.PreviewItem.Format.FormatString);
            }
        }
        private void UpdateWorshipShowIcons()
        {
            if (this.ResetWorshipShowIcons())
            {
                if (gf.OutputItem.CurItemNo > 0)
                {
                    try
                    {
                        if (this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 0 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 2 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 4 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 6 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 8 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 28 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 10)
                        {
                            this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex + 1;
                            this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[6].Text = "O";
                            PreviewPanelDisplayName.Items[0].ImageIndex = 1;
                            OutputPanelDisplayName.Items[0].ImageIndex = 1;
                        }
                        this.WorshipListItems.Items[gf.StartPresAt - 1].ForeColor = Color.Red;
                        this.WorshipListItems.Items[gf.StartPresAt - 1].EnsureVisible();
                    }
                    catch
                    {
                    }
                }
                else
                {
                    if (gf.StartPresAt > 0 & gf.StartPresAt <= this.WorshipListItems.Items.Count)
                    {
                        try
                        {
                            if (gf.Left(this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[1].Text, 1) == "D")
                            {
                                this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = 0;
                            }
                            else
                            {
                                if (gf.Left(this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[1].Text, 1) == "P")
                                {
                                    this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = 11;
                                }
                                else
                                {
                                    if (gf.Left(this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[1].Text, 1) == "B")
                                    {
                                        this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = 4;
                                    }
                                    else
                                    {
                                        if (gf.Left(this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[1].Text, 1) == "T")
                                        {
                                            this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = 6;
                                        }
                                        else
                                        {
                                            if (gf.Left(this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[1].Text, 1) == "I")
                                            {
                                                this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = 8;
                                            }
                                            else
                                            {
                                                if (gf.Left(this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[1].Text, 1) == "W")
                                                {
                                                    this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = 12;
                                                }
                                                else
                                                {
                                                    if (gf.Left(this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[1].Text, 1) == "M")
                                                    {
                                                        this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = 10;
                                                    }
                                                    else
                                                    {
                                                        this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[6].Text = "";
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        catch
                        {
                        }
                    }
                }
            }
        }
        private bool ResetWorshipShowIcons()
        {
            bool result;
            if (this.WorshipListItems.Items.Count > 0)
            {
                for (int i = 0; i < this.WorshipListItems.Items.Count; i++)
                {
                    if (this.WorshipListItems.Items[i].ImageIndex == 1 || this.WorshipListItems.Items[i].ImageIndex == 3 || this.WorshipListItems.Items[i].ImageIndex == 5 || this.WorshipListItems.Items[i].ImageIndex == 7 || this.WorshipListItems.Items[i].ImageIndex == 9 || this.WorshipListItems.Items[i].ImageIndex == 29 || this.WorshipListItems.Items[i].ImageIndex == 11)
                    {
                        this.WorshipListItems.Items[i].ImageIndex = 0;//this.WorshipListItems.Items[i].ImageIndex - 1;
                    }
                    this.WorshipListItems.Items[i].SubItems[6].Text = "";
                    if (this.WorshipListItems.Items[i].ForeColor != this.SongsList.ForeColor)
                    {
                        this.WorshipListItems.Items[i].ForeColor = this.SongsList.ForeColor;
                    }
                }
                result = true;
            }
            else
            {
                result = false;
            }
            return result;
        }
        private void CopyPreviewToOutput()
        {
            gf.OutputItem.InMainItemText = gf.PreviewItem.InMainItemText;
            gf.OutputItem.InSubItemItem1Text = gf.PreviewItem.InSubItemItem1Text;
            gf.OutputItem.Source = gf.PreviewItem.Source;
            gf.OutputItem.CurItemNo = gf.PreviewItem.CurItemNo;
            gf.StartPresAt = ((gf.OutputItem.CurItemNo > 0) ? gf.OutputItem.CurItemNo : gf.StartPresAt);
            gf.OutputItem.OutputStyleScreen = true;
            if (gf.ShowRunning)
            {
                if (gf.OutputItem.CurItemNo == 0)
                {
                    gf.WorshipSongs[0, 2] = gf.OutputItem.InMainItemText;
                    gf.WorshipSongs[0, 0] = gf.OutputItem.InSubItemItem1Text;
                    gf.WorshipSongs[0, 1] = gf.Left(gf.WorshipSongs[0, 0], 1);
                    gf.WorshipSongs[0, 4] = gf.PreviewItem.Format.FormatString;
                    gf.AdHocItemPresent = true;
                }
                if (gf.PreviewItem.Type == "P" && gf.PreviewItem.Source != gf.ItemSource.WorshipList)
                {
                    gf.PreLoadPowerpointFiles(ref gf.LivePP, ref gf.WorshipSongs);
                }
            }
            this.LoadItem(ref gf.OutputItem, gf.PreviewItem.Type + gf.PreviewItem.ItemID, gf.PreviewItem.Format.FormatString, gf.PreviewItem.CurSlide, ref gf.PreviewItem.Title, true);
            this.UpdateWorshipShowIcons();
            if (gf.ShowRunning)
            {
                gf.MainAction_SongChanged_Transaction = ImageTransitionControl.TransitionAction.AsStoredItem;
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SongChanged);
            }
            this.FocusOutputArea();
        }
        private void btnToOutput_Click(object sender, EventArgs e)
        {
            if (gf.PreviewItem.ItemID != "")
            {
                this.CopyPreviewToOutput();
            }
        }
        private void btnToOutputMoveNext_Click(object sender, EventArgs e)
        {
            if (gf.PreviewItem.ItemID != "")
            {
                this.CopyPreviewToOutput();
            }
            this.ManualMoveToItem(gf.PreviewItem, gf.KeyDirection.NextOne);
            this.FocusOutputArea();
        }
        private void ShowSong(ref gf.SongSettings InItem)
        {
            this.ShowSong(ref InItem, 1);
        }
        private void ShowSong(ref gf.SongSettings InItem, int StartingSlide)
        {
            this.ShowSong(ref InItem, StartingSlide, ImageTransitionControl.TransitionAction.AsStored);
        }
        private void ShowSong(ref gf.SongSettings InItem, int StartingSlide, ImageTransitionControl.TransitionAction TransitionAction)
        {
            if (TransitionAction == ImageTransitionControl.TransitionAction.AsStored)
            {
                TransitionAction = (ImageTransitionControl.TransitionAction)InItem.Format.ShowItemTransition;
            }
            InItem.CurSlide = StartingSlide;
            this.RefreshSlidesFonts(ref InItem, TransitionAction);
        }
        private void DisplaySettingsLabel(gf.SongSettings Initem)
        {
            if (Initem != null)
            {
                ListViewItem listViewItem;
                if (Initem.OutputStyleScreen)
                {
                    this.OutputPanelDisplayName.Items.Clear();
                    listViewItem = this.OutputPanelDisplayName.Items.Add(Initem.Title);
                    this.toolTip1.SetToolTip(this.OutputPanelDisplayName, Initem.Title);
                }
                else
                {
                    this.PreviewPanelDisplayName.Items.Clear();
                    listViewItem = this.PreviewPanelDisplayName.Items.Add(Initem.Title);
                    this.toolTip1.SetToolTip(this.PreviewPanelDisplayName, Initem.Title);
                }
                if (Initem.Type == "D")
                {
                    listViewItem.ImageIndex = 0;
                }
                else
                {
                    if (Initem.Type == "P")
                    {
                        listViewItem.ImageIndex = 11;
                    }
                    else
                    {
                        if (Initem.Type == "B")
                        {
                            listViewItem.ImageIndex = 4;
                        }
                        else
                        {
                            if (Initem.Type == "T")
                            {
                                listViewItem.ImageIndex = 6;
                            }
                            else
                            {
                                if (Initem.Type == "I")
                                {
                                    listViewItem.ImageIndex = 8;
                                }
                                else
                                {
                                    if (Initem.Type == "W")
                                    {
                                        listViewItem.ImageIndex = 12;
                                    }
                                    else
                                    {
                                        if (Initem.Type == "M")
                                        {
                                            listViewItem.ImageIndex = 10;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        private void SetSortButtonPB(gf.SortBy Inmode)
        {
            if (Inmode == gf.SortBy.Alpha)
            {
                this.PB_WordCount.Checked = false;
                gf.PB_CJKGroupStyle = gf.SortBy.Alpha;
            }
            else
            {
                if (Inmode == gf.SortBy.WordCount)
                {
                    this.PB_WordCount.Checked = true;
                    gf.PB_CJKGroupStyle = gf.SortBy.WordCount;
                }
            }
            string text = "";
            this.Cursor = Cursors.WaitCursor;
            if (gf.UseSongNumbers)
            {
                for (int i = 0; i <= this.PraiseBookItems.Items.Count - 1; i++)
                {
                    string inTitle = gf.RemoveMusicSym(this.PraiseBookItems.Items[i].SubItems[2].Text);
                    string str = gf.Format6(this.PraiseBookItems.Items[i].SubItems[5].Text);
                    this.PraiseBookItems.Items[i].SubItems[0].Text = str + gf.GetCJKTitle(inTitle, gf.PB_CJKGroupStyle, ref text);
                    this.PraiseBookItems.Items[i].SubItems[4].Text = text;
                }
            }
            else
            {
                for (int i = 0; i <= this.PraiseBookItems.Items.Count - 1; i++)
                {
                    string inTitle = gf.RemoveMusicSym(this.PraiseBookItems.Items[i].SubItems[2].Text);
                    this.PraiseBookItems.Items[i].SubItems[0].Text = gf.GetCJKTitle(inTitle, gf.PB_CJKGroupStyle, ref text);
                    this.PraiseBookItems.Items[i].SubItems[4].Text = text;
                }
            }
            this.SortPraiseBookList();
            this.Cursor = Cursors.Default;
        }
        private void SavePraiseBook()
        {
            if (!(gf.Trim(this.PraiseBook.Text) == ""))
            {
                gf.CurPraiseBook = this.PraiseBook.Text;
                gf.PB_ShowWords[3] = 1;
                gf.PB_ShowWords[4] = 1;
                for (int i = 1; i <= this.PraiseBookItems.Items.Count; i++)
                {
                    gf.DocumentSongs[i, 2] = gf.RemoveMusicSym(gf.Trim(this.PraiseBookItems.Items[i - 1].SubItems[2].Text));
                    gf.DocumentSongs[i, 0] = gf.Trim(this.PraiseBookItems.Items[i - 1].SubItems[3].Text);
                    gf.DocumentSongs[i, 4] = "";
                }
                gf.CreateNewFile(gf.PraiseBookDir + gf.CurPraiseBook + ".esp");
                gf.SaveIndexFile(gf.PraiseBookDir + gf.CurPraiseBook + ".esp", ref this.PraiseBookItems, gf.UsageMode.PraiseBook, true, "", gf.CurPraiseBookNotes);
            }
        }
        private void SortPraiseBookList()
        {
            if (this.PraiseBookItems.Items.Count != 0)
            {
                this.Cursor = Cursors.WaitCursor;
                this.PraiseBookItems.Sorting = SortOrder.Ascending;
                this.PraiseBookItems.Sort();
                if (gf.UseSongNumbers)
                {
                    for (int i = 0; i <= this.PraiseBookItems.Items.Count - 1; i++)
                    {
                        this.PraiseBookItems.Items[i].SubItems[1].Text = this.PraiseBookItems.Items[i].SubItems[5].Text;
                    }
                }
                else
                {
                    if (!gf.UseSongNumbers)
                    {
                        for (int i = 0; i <= this.PraiseBookItems.Items.Count - 1; i++)
                        {
                            this.PraiseBookItems.Items[i].SubItems[1].Text = Convert.ToString(i + 1);
                        }
                    }
                }
                this.PraiseBookItems.Columns[1].Width = -1;
                if (this.PraiseBookItems.Columns.Count > 0)
                {
                    this.PraiseBookItems.Columns[2].Width = ((this.PraiseBookItems.Width - this.PraiseBookItems.Columns[1].Width - 20 >= 0) ? (this.PraiseBookItems.Width - this.PraiseBookItems.Columns[1].Width - 20) : 0);
                }
                this.ShowStatusBarSummary();
                this.SavePraiseBook();
                this.Cursor = Cursors.Default;
            }
        }
        private void WorshipList_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                ListViewItem itemAt = this.WorshipListItems.GetItemAt(e.X, e.Y);
                string itemName = "";
                if (itemAt != null)
                {
                    itemAt.Selected = true;
                    this.WorshipListIndexChanged();
                }
                Point position = default(Point);
                position = this.WorshipListItems.PointToClient(Cursor.Position);
                gf.GetSelectedIndex(this.WorshipListItems, ref itemName);
                gf.SetMenuItem(ref this.CMenuWorship_Edit, itemName, "Edit Item", "Edit", true);
                this.CMenuWorship.Show(this.WorshipListItems, position);
            }
            else
            {
                this.WorshipListIndexChanged();
            }
            this.ResetListViewBackgroundColour(this.WorshipListItems);
            if (this.WorshipListDoubleClick)
            {
                this.WorshipListDoubleClick = false;
            }
            else
            {
                this.WorshipListItems.Focus();
            }
        }
        private void ResetListViewBackgroundColour(ListView InListView)
        {
            for (int i = 0; i <= InListView.Items.Count - 1; i++)
            {
                InListView.Items[i].BackColor = this.SongFolder.BackColor;
            }
        }
        private void WorshipList_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Control && e.KeyCode == Keys.A)
            {
                this.WorshipList_SelectAll();
            }
            else
            {
                if (e.KeyCode == Keys.Delete)
                {
                    this.RemoveWorshipListSong();
                    this.SaveWorshipList();
                }
                else
                {
                    this.WorshipListIndexChanged();
                }
                this.WorshipListItems.Focus();
            }
        }
        private void WorshipListItems_DoubleClick(object sender, EventArgs e)
        {
            if (gf.ShowRunning)
            {
                if (gf.PreviewItem.ItemID != "")
                {
                    this.CopyPreviewToOutput();
                }
            }
            else
            {
                if (gf.PreviewItem.ItemID != "")
                {
                    this.CopyPreviewToOutput();
                    this.GoLive(true);
                }
            }
            this.WorshipListDoubleClick = true;
            this.FocusOutputArea();
        }
        private void WorshipList_SelectAll()
        {
            if (this.WorshipListItems.Items.Count != 0)
            {
                this.Cursor = Cursors.WaitCursor;
                for (int i = 0; i <= this.WorshipListItems.Items.Count - 1; i++)
                {
                    this.WorshipListItems.Items[i].Selected = true;
                }
                gf.DB_CurSongID = 0;
                this.ClearLyrics(ref this.flowLayoutPreviewLyrics);
                this.ResetMainPictureBox(ref gf.PreviewItem);
                this.Cursor = Cursors.Default;
            }
        }
        private void WorshipList_UnselectAll()
        {
            if (this.WorshipListItems.Items.Count != 0)
            {
                this.Cursor = Cursors.WaitCursor;
                for (int i = 0; i <= this.WorshipListItems.Items.Count - 1; i++)
                {
                    this.WorshipListItems.Items[i].Selected = false;
                }
                gf.DB_CurSongID = 0;
                this.ClearLyrics(ref this.flowLayoutPreviewLyrics);
                this.WorshipListIndexChanged();
                this.Cursor = Cursors.Default;
            }
        }
        private void PraiseBookItems_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Control && e.KeyCode == Keys.A)
            {
                this.PraiseBookList_SelectAll();
            }
            else
            {
                if (e.KeyCode == Keys.Delete)
                {
                    this.RemovePraiseBookListSong();
                }
                else
                {
                    this.PraiseBookListIndexChanged();
                }
                this.PraiseBookItems.Focus();
            }
        }
        private void PraiseBookList_SelectAll()
        {
            if (this.PraiseBookItems.Items.Count != 0)
            {
                this.Cursor = Cursors.WaitCursor;
                for (int i = 0; i <= this.PraiseBookItems.Items.Count - 1; i++)
                {
                    this.PraiseBookItems.Items[i].Selected = true;
                }
                gf.DB_CurSongID = 0;
                this.ClearLyrics(ref this.flowLayoutPreviewLyrics);
                this.Cursor = Cursors.Default;
                this.DisplayLyrics(gf.PreviewItem, 1, ImageTransitionControl.TransitionAction.None);
            }
        }
        private void PraiseBookList_UnselectAll()
        {
            if (this.PraiseBookItems.Items.Count != 0)
            {
                this.Cursor = Cursors.WaitCursor;
                for (int i = 0; i <= this.PraiseBookItems.Items.Count - 1; i++)
                {
                    this.PraiseBookItems.Items[i].Selected = false;
                }
                gf.DB_CurSongID = 0;
                this.ClearLyrics(ref this.flowLayoutPreviewLyrics);
                this.PraiseBookListIndexChanged();
                this.Cursor = Cursors.Default;
            }
        }
        private void PraiseBookItems_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                ListViewItem itemAt = this.PraiseBookItems.GetItemAt(e.X, e.Y);
                string itemName = "";
                if (itemAt != null)
                {
                    itemAt.Selected = true;
                    this.DisplayLyrics(gf.PreviewItem, 1, ImageTransitionControl.TransitionAction.None);
                }
                Point position = default(Point);
                position = this.PraiseBookItems.PointToClient(Cursor.Position);
                gf.GetSelectedIndex(this.PraiseBookItems, ref itemName, "", 2);
                gf.SetMenuItem(ref this.CMenuPraiseB_Edit, itemName, "Edit Item", "Edit", true);
                this.CMenuPraiseB.Show(this.PraiseBookItems, position);
            }
            else
            {
                this.PraiseBookListIndexChanged();
            }
            this.PraiseBookItems.Focus();
        }
        private void PraiseBookListIndexChanged()
        {
            int selectedIndex = gf.GetSelectedIndex(this.PraiseBookItems);
            if (selectedIndex >= 0)
            {
                string text = this.PraiseBookItems.Items[selectedIndex].SubItems[3].Text;
                gf.PreviewItem.CurItemNo = selectedIndex + 1;
                gf.PreviewItem.TotalItems = this.PraiseBookItems.Items.Count;
                gf.PreviewItem.Source = gf.ItemSource.PraiseBook;
                this.LoadItem(ref gf.PreviewItem, text);
            }
            else
            {
                gf.PreviewItem.Type = "";
                gf.PreviewItem.ItemID = "";
                this.ClearLyrics(ref this.flowLayoutPreviewLyrics);
            }
        }
        private void Edit_PraiseBookSong()
        {
            if (this.PraiseBookItems.Items.Count != 0)
            {
                if (this.PraiseBookItems.SelectedItems.Count != 1)
                {
                    MessageBox.Show("Please select ONE item from the PraiseBook List to edit");
                }
                else
                {
                    string text = "PraiseBook List";
                    int selectedIndex = gf.GetSelectedIndex(this.PraiseBookItems, ref text);
                    if (selectedIndex >= 0)
                    {
                        string text2 = this.PraiseBookItems.Items[selectedIndex].SubItems[3].Text;
                        this.Edit_Item(text2);
                    }
                }
            }
        }
        private bool AddToWorshipList()
        {
            bool result;
            if (this.IsSelectedTab(this.tabControlSource, "tabFolders"))
            {
                result = this.AddFromSongsList();
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
                {
                    result = this.AddFromInfoScreensList();
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                    {
                        result = this.AddFromPowerpointList();
                    }
                    else
                    {
                        if (this.IsSelectedTab(this.tabControlSource, "tabBibles"))
                        {
                            result = this.AddFromHolyBible();
                        }
                        else
                        {
                            if (this.IsSelectedTab(this.tabControlSource, "tabMedia"))
                            {
                                result = this.AddFromMediaFilesList();
                            }
                            else
                            {
                                result = this.AddFromPreview();
                            }
                        }
                    }
                }
            }
            return result;
        }
        private bool AddFromPreview()
        {
            return this.AddFromPreview(this.GetWorshipListNextSelectedLoc());
        }
        private bool AddFromPreview(int AddToLocation)
        {
            bool result;
            if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
            {
                result = this.AddFromSongsList(AddToLocation);
            }
            else
            {
                if (gf.PreviewItem.Source == gf.ItemSource.ExternalFileInfoScreen)
                {
                    result = this.AddFromInfoScreensList(AddToLocation);
                }
                else
                {
                    if (gf.PreviewItem.Source == gf.ItemSource.ExternalFileInfoScreen)
                    {
                        result = this.AddFromMediaFilesList(AddToLocation);
                    }
                    else
                    {
                        if (gf.PreviewItem.Source == gf.ItemSource.ExternalFilePowerpoint)
                        {
                            result = this.AddFromPowerpointList();
                        }
                        else
                        {
                            result = (gf.PreviewItem.Source == gf.ItemSource.HolyBible && this.AddFromHolyBible(AddToLocation));
                        }
                    }
                }
            }
            return result;
        }
        private bool AddFromSongsList()
        {
            return this.AddFromSongsList(this.GetWorshipListNextSelectedLoc());
        }
        private bool AddFromSongsList(int AddToLocation)
        {
            bool result;
            if (this.SongsList.Items.Count == 0 || this.SongsList.SelectedItems.Count == 0)
            {
                result = false;
            }
            else
            {
                ListViewItem listViewItem = new ListViewItem();
                this.Cursor = Cursors.WaitCursor;
                if (AddToLocation < 0 || AddToLocation > this.WorshipListItems.Items.Count)
                {
                    AddToLocation = this.WorshipListItems.Items.Count;
                }
                int num = 0;
                gf.TotalMusicFiles = -1;
                try
                {
                    Recordset tableRecordSet = gf.GetTableRecordSet(gf.ConnectStringMainDB, "SONG");
                    tableRecordSet.Index = "PrimaryKey";
                    for (int i = 0; i < this.SongsList.SelectedItems.Count; i++)
                    {
                        string text = this.SongsList.SelectedItems[i].SubItems[1].Text;
                        string text2 = gf.Mid(text, 1, text.Length - 1);
                        long num2 = (long)gf.StringToInt(text2);
                        string text3 = gf.Left(text, 0);
                        try
                        {
                            tableRecordSet.Seek("=", text2, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def);
                            if (!tableRecordSet.NoMatch)
                            {
                                string text4 = gf.GetDataString(tableRecordSet, "Title_1");
                                string copyRight = gf.GetDataString(tableRecordSet, "COPYRIGHT"); ;
                                if (copyRight != "")
                                    text4 += "  --> " + gf.GetDataString(tableRecordSet, "COPYRIGHT");
                                string dataString = gf.GetDataString(tableRecordSet, "Title_2");
                                if (gf.MusicFound(text4, dataString))
                                {
                                    text4 += " <#>";
                                }
                                string dataString2 = gf.GetDataString(tableRecordSet, "FORMATDATA");
                                listViewItem = this.WorshipListItems.Items.Insert(AddToLocation, text4);
                                listViewItem.ImageIndex = 0;
                                listViewItem.SubItems.Add(this.SongsList.SelectedItems[i].SubItems[1].Text);
                                listViewItem.SubItems.Add(dataString2);
                                listViewItem.SubItems.Add(this.SongsList.SelectedItems[i].SubItems[4].Text);
                                listViewItem.SubItems.Add(this.SongsList.SelectedItems[i].SubItems[5].Text);
                                listViewItem.SubItems.Add(this.SongsList.SelectedItems[i].SubItems[6].Text);
                                listViewItem.SubItems.Add("");
                                listViewItem.SubItems.Add(this.SongFolder.Text);
                                AddToLocation++;
                                num++;
                            }
                        }
                        catch
                        {
                        }
                    }
                }
                catch
                {
                }
                this.SetWorshipPraiseListColWidth();
                if (num == 0)
                {
                    this.Cursor = Cursors.Default;
                    result = false;
                }
                else
                {
                    this.ShowStatusBarSummary();
                    this.SelectWorshipListItem(AddToLocation - num, num);
                    this.SaveWorshipList();
                    this.UpdateOutputCurItemNo();
                    this.Cursor = Cursors.Default;
                    result = true;
                }
            }
            return result;
        }
        private int GetWorshipListNextSelectedLoc()
        {
            int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
            return (selectedIndex < 0) ? this.WorshipListItems.Items.Count : (selectedIndex + 1);
        }
        private void SelectWorshipListItem(int InIndex, int SelCount)
        {
            if (InIndex >= 0)
            {
                for (int i = 0; i < this.WorshipListItems.Items.Count; i++)
                {
                    if (i >= InIndex && i < InIndex + SelCount)
                    {
                        this.WorshipListItems.Items[i].Selected = true;
                    }
                    else
                    {
                        this.WorshipListItems.Items[i].Selected = false;
                    }
                }
            }
            this.WorshipListIndexChanged();
        }
        private bool AddFromInfoScreensList()
        {
            return this.AddFromInfoScreensList(this.GetWorshipListNextSelectedLoc());
        }
        private bool AddFromInfoScreensList(int AddToLocation)
        {
            bool result;
            if (this.InfoScreenList.SelectedItems.Count > 0)
            {
                if (AddToLocation < 0)
                {
                    AddToLocation = this.WorshipListItems.Items.Count;
                }
                int num = 0;
                for (int i = 0; i < this.InfoScreenList.SelectedItems.Count; i++)
                {
                    this.AddExternalFileToWorshipList(gf.Mid(this.InfoScreenList.SelectedItems[i].SubItems[1].Text, 1), AddToLocation + num);
                    num++;
                }
                if (this.InfoScreenList.SelectedItems.Count > 0)
                {
                    this.SelectWorshipListItem(AddToLocation, num);
                }
                result = true;
            }
            else
            {
                result = false;
            }
            return result;
        }
        private bool AddFromMediaFilesList()
        {
            return this.AddFromMediaFilesList(this.GetWorshipListNextSelectedLoc());
        }
        private bool AddFromMediaFilesList(int AddToLocation)
        {
            bool result;
            if (this.MediaList.SelectedItems.Count > 0)
            {
                if (AddToLocation < 0)
                {
                    AddToLocation = this.WorshipListItems.Items.Count;
                }
                int num = 0;
                for (int i = 0; i < this.MediaList.SelectedItems.Count; i++)
                {
                    this.AddExternalFileToWorshipList(gf.Mid(this.MediaList.SelectedItems[i].SubItems[1].Text, 1), AddToLocation + num);
                    num++;
                }
                if (this.MediaList.SelectedItems.Count > 0)
                {
                    this.SelectWorshipListItem(AddToLocation, num);
                }
                result = true;
            }
            else
            {
                result = false;
            }
            return result;
        }
        private bool AddFromPowerpointList()
        {
            return this.AddFromPowerpointList(this.GetWorshipListNextSelectedLoc());
        }
        private bool AddFromPowerpointList(int AddToLocation)
        {
            bool result;
            if (gf.PowerpointListingStyle == 0)
            {
                if (this.PowerpointList.SelectedItems.Count > 0)
                {
                    if (AddToLocation < 0)
                    {
                        AddToLocation = this.WorshipListItems.Items.Count;
                    }
                    int num = 0;
                    for (int i = 0; i < this.PowerpointList.SelectedItems.Count; i++)
                    {
                        if (!this.AddExternalFileToWorshipList(gf.Mid(this.PowerpointList.SelectedItems[i].SubItems[1].Text, 1), AddToLocation + num))
                        {
                            result = false;
                            return result;
                        }
                        num++;
                    }
                    if (this.PowerpointList.SelectedItems.Count > 0)
                    {
                        this.SelectWorshipListItem(AddToLocation, num);
                    }
                    result = true;
                }
                else
                {
                    result = false;
                }
            }
            else
            {
                result = this.AddExternalFileToWorshipList(gf.Mid(this.PowerpointCurPreview, 1), AddToLocation);
            }
            return result;
        }
        private void AddToPraiseBookList()
        {
            if (!(gf.Trim(this.PraiseBook.Text) == "") && this.SongsList.SelectedItems.Count >= 1)
            {
                string text = "";
                ListViewItem listViewItem = new ListViewItem();
                this.Cursor = Cursors.WaitCursor;
                this.PraiseBookItems.Sorting = SortOrder.None;
                ListViewItem[] array = new ListViewItem[this.SongsList.SelectedItems.Count];
                this.PraiseBookItems.BeginUpdate();
                for (int i = 0; i < this.SongsList.SelectedItems.Count; i++)
                {
                    string text2 = gf.RemoveMusicSym(this.SongsList.SelectedItems[i].Text);
                    string str = gf.UseSongNumbers ? gf.Format6(this.SongsList.SelectedItems[i].SubItems[4].Text) : "";
                    array[i] = new ListViewItem(new string[]
					{
						str + gf.GetCJKTitle(text2, gf.PB_CJKGroupStyle, ref text),
						" ",
						text2,
						this.SongsList.SelectedItems[i].SubItems[1].Text,
						text,
						this.SongsList.SelectedItems[i].SubItems[4].Text
					});
                }
                this.PraiseBookItems.Items.AddRange(array);
                this.SortPraiseBookList();
                this.PraiseBookItems.EndUpdate();
                this.Cursor = Cursors.Default;
            }
        }
        private void OldAddToPraiseBookList()
        {
            if (!(gf.Trim(this.PraiseBook.Text) == ""))
            {
                string text = "";
                ListViewItem listViewItem = new ListViewItem();
                this.Cursor = Cursors.WaitCursor;
                this.PraiseBookItems.Sorting = SortOrder.None;
                if (gf.UseSongNumbers)
                {
                    for (int i = 0; i < this.SongsList.SelectedItems.Count; i++)
                    {
                        string text2 = gf.RemoveMusicSym(this.SongsList.SelectedItems[i].Text);
                        string str = gf.Format6(this.SongsList.SelectedItems[i].SubItems[4].Text);
                        listViewItem = this.PraiseBookItems.Items.Add(str + gf.GetCJKTitle(text2, gf.PB_CJKGroupStyle, ref text));
                        listViewItem.SubItems.Add(" ");
                        listViewItem.SubItems.Add(text2);
                        listViewItem.SubItems.Add(this.SongsList.SelectedItems[i].SubItems[1].Text);
                        listViewItem.SubItems.Add(text);
                        listViewItem.SubItems.Add(this.SongsList.SelectedItems[i].SubItems[4].Text);
                    }
                }
                else
                {
                    for (int i = 0; i < this.SongsList.SelectedItems.Count; i++)
                    {
                        string text2 = gf.RemoveMusicSym(this.SongsList.SelectedItems[i].Text);
                        listViewItem = this.PraiseBookItems.Items.Add(gf.GetCJKTitle(text2, gf.PB_CJKGroupStyle, ref text));
                        listViewItem.SubItems.Add(" ");
                        listViewItem.SubItems.Add(text2);
                        listViewItem.SubItems.Add(this.SongsList.SelectedItems[i].SubItems[1].Text);
                        listViewItem.SubItems.Add(text);
                        listViewItem.SubItems.Add(this.SongsList.SelectedItems[i].SubItems[4].Text);
                    }
                }
                this.SortPraiseBookList();
                this.Cursor = Cursors.Default;
            }
        }
        private void SongsList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (gf.GetSelectedIndex(this.SongsList) >= 0)
            {
                if (gf.EasiSlidesMode == gf.UsageMode.Worship)
                {
                    this.AddToWorshipList();
                }
                else
                {
                    this.AddToPraiseBookList();
                }
            }
        }
        private void WL_Btn_MouseUp(object sender, MouseEventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            if (name == "WL_Manage")
            {
                this.WorshipListsManage();
            }
            else
            {
                if (name == "WL_Add")
                {
                    this.AddToWorshipList();
                }
                else
                {
                    if (name == "WL_Open")
                    {
                        this.LocateFileWorshipList();
                    }
                    else
                    {
                        if (name == "WL_Up")
                        {
                            this.MoveSongUp();
                            this.SaveWorshipList();
                        }
                        else
                        {
                            if (name == "WL_Down")
                            {
                                this.MoveSongDown();
                                this.SaveWorshipList();
                            }
                            else
                            {
                                if (name == "WL_Delete")
                                {
                                    this.RemoveWorshipListSong();
                                    this.SaveWorshipList();
                                }
                                else
                                {
                                    if (name == "WL_Word")
                                    {
                                        this.SetDocLayout(gf.PraiseBookLayout.WorshipList);
                                    }
                                    else
                                    {
                                        if (name == "WL_Notes")
                                        {
                                            this.EditSessionNotes();
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        private void EditSessionNotes()
        {
            gf.EditNotes = gf.CurSessionNotes;
            gf.EditNotesHeading = "Edit Session Notes";
            FrmEditNotes frmEditNotes = new FrmEditNotes();
            if (frmEditNotes.ShowDialog() == DialogResult.OK)
            {
                gf.CurSessionNotes = gf.EditNotes;
                this.PreviewNotes.Text = gf.CurSessionNotes;
                this.SaveWorshipList();
            }
        }
        private void PB_Btn_MouseUp(object sender, MouseEventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            if (name == "PB_Manage")
            {
                this.PraiseBooksManage();
            }
            else
            {
                if (name == "PB_Add")
                {
                    this.AddToPraiseBookList();
                }
                else
                {
                    if (name == "PB_WordCount")
                    {
                        this.SetSortButtonPB(toolStripButton.Checked ? gf.SortBy.WordCount : gf.SortBy.Alpha);
                    }
                    else
                    {
                        if (name == "PB_Delete")
                        {
                            this.RemovePraiseBookListSong();
                        }
                        else
                        {
                            if (name == "PB_Word")
                            {
                                this.SetDocLayout(gf.PraiseBookLayout.PraiseBook);
                            }
                            else
                            {
                                if (name == "PB_Html")
                                {
                                    this.GenerateHTMLPB();
                                }
                            }
                        }
                    }
                }
            }
        }
        private void GenerateHTMLPB()
        {
            this.SavePraiseBook();
            if (this.PraiseBookItems.Items.Count > 0)
            {
                if (this.ValidatePraiseBookItems() < 0)
                {
                    FrmGenerateHtml frmGenerateHtml = new FrmGenerateHtml();
                    frmGenerateHtml.ShowDialog();
                }
            }
            else
            {
                MessageBox.Show("Can't Generate because the PraiseBook List is empty!");
            }
        }
        private void Folders_WordCount_MouseUp(object sender, MouseEventArgs e)
        {
            gf.SortBy curStyle = this.CurStyle;
            this.SetSortButton(this.Folders_WordCount.Checked ? gf.SortBy.WordCount : gf.SortBy.Alpha);
            gf.FolderGroupStyle[gf.GetFolderNumber(this.SongFolder.Text)] = this.CurStyle;
            gf.SaveConfigSettings();
            if (this.CurStyle != curStyle)
            {
                this.SongFolder_Change();
            }
        }
        private void Images_Btn_MouseUp(object sender, MouseEventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            if (name == "Images_Left")
            {
                this.LoadBackgroundThumbImages();
            }
            else
            {
                if (name == "Images_Right")
                {
                    this.LoadBackgroundThumbImages();
                }
            }
        }
        private void Bibles_Btn_MouseUp(object sender, MouseEventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            if (name == "Bibles_ShowVerses")
            {
                this.TabBibleVersionsChanged();
            }
            else
            {
                if (name == "Bibles_Go")
                {
                    this.BibleUserLookup_ShowVerses();
                }
            }
        }
        private void BibleUserLookup_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Return | e.KeyCode == Keys.Return)
            {
                this.BibleUserLookup_ShowVerses();
            }
        }
        private bool AddFromHolyBible()
        {
            return this.AddFromHolyBible(this.GetWorshipListNextSelectedLoc());
        }
        private bool AddFromHolyBible(int AddToLocation)
        {
            bool result;
            if (this.BibleText.Text == "" | this.BibleText.SelectionLength < 1)
            {
                result = false;
            }
            else
            {
                if (gf.PreviewItem.Type != "B" | gf.PreviewItem.Source != gf.ItemSource.HolyBible)
                {
                    this.HB_SelectedPassagesChanged(this.HB_CurSelectedPassages, ref this.HB_CurSelectedTitle);
                }
                ListViewItem listViewItem = new ListViewItem();
                if (AddToLocation < 0 || AddToLocation > this.WorshipListItems.Items.Count)
                {
                    AddToLocation = this.WorshipListItems.Items.Count;
                }
                listViewItem = this.WorshipListItems.Items.Insert(AddToLocation, this.HB_CurSelectedTitle);
                listViewItem.ImageIndex = 4;
                listViewItem.SubItems.Add("B" + this.HB_CurSelectedPassages);
                listViewItem.SubItems.Add(this.HB_CurSelectedFormat);
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                this.ShowStatusBarSummary();
                this.SelectWorshipListItem(AddToLocation, 1);
                this.SaveWorshipList();
                this.UpdateOutputCurItemNo();
                result = true;
            }
            return result;
        }
        private void UpdateOutputCurItemNo()
        {
            if (this.WorshipListItems.Items.Count == 0)
            {
                if (gf.ShowRunning)
                {
                    this.GoLive(false);
                }
                gf.OutputItem.CurItemNo = 0;
                gf.StartPresAt = 0;
            }
            else
            {
                int i = 0;
                while (i <= this.WorshipListItems.Items.Count - 1)
                {
                    if (this.WorshipListItems.Items[i].SubItems[6].Text == "O")
                    {
                        gf.StartPresAt = i + 1;
                        if (gf.OutputItem.CurItemNo != 0)
                        {
                            gf.OutputItem.CurItemNo = gf.StartPresAt;
                        }
                        this.WorshipListItems.Items[i].EnsureVisible();
                    IL_1C1:
                        if (gf.ShowRunning)
                        {
                            this.ValidateWorshipListItems(false);
                            this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_WorshipListChanged);
                            return;
                        }
                        return;
                    }
                    else
                    {
                        i++;
                    }
                }
                if (this.WorshipListItems.Items.Count > 0)
                {
                    if (gf.StartPresAt > this.WorshipListItems.Items.Count)
                    {
                        gf.StartPresAt = this.WorshipListItems.Items.Count;
                    }
                    if (gf.OutputItem.CurItemNo != 0)
                    {
                        if (gf.StartPresAt == 0)
                        {
                            gf.StartPresAt = 1;
                        }
                        this.WorshipListItems.Items[gf.StartPresAt - 1].SubItems[6].Text = "O";
                        this.WorshipListItems.Items[gf.StartPresAt - 1].EnsureVisible();
                        gf.OutputItem.CurItemNo = gf.StartPresAt;
                    }
                    //goto IL_1C1;
                }
                //goto IL_1C1;
            }
        }
        private void HB_SelectedPassagesChanged(string InBibleString, ref string InTitle)
        {
            this.Cursor = Cursors.WaitCursor;
            gf.PreviewItem.Source = gf.ItemSource.HolyBible;
            if (InBibleString != "")
            {
                string text = "B" + InBibleString;
                gf.PreviewItem.InMainItemText = InTitle;
                gf.PreviewItem.InSubItemItem1Text = text;
                gf.PreviewItem.CurItemNo = 0;
                gf.PreviewItem.Type = "B";
                this.LoadItem(ref gf.PreviewItem, text, "", 1, ref InTitle, true);
                this.UpdateDisplayPanelFields();
            }
            else
            {
                gf.PreviewItem.Type = "";
                gf.PreviewItem.Title = "";
                gf.PreviewItem.ItemID = "";
                gf.PreviewItem.CurItemNo = 0;
                gf.LoadIndividualFormatData(ref gf.PreviewItem, "");
                this.AllowIndividualFormat(false);
                this.UpdateFormatFields();
                this.BuildVerseButtons(gf.PreviewItem);
                this.DisplayLyrics(gf.PreviewItem, 1);
                this.UpdateDisplayPanelFields();
            }
            this.Cursor = Cursors.Default;
        }
        private void BibleText_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                this.HB_StartBuildStringProcess();
            }
        }
        private void BibleText_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Control && e.KeyCode == Keys.A)
            {
                this.HB_SelectAll();
            }
            else
            {
                if (e.Control && e.KeyCode == Keys.C)
                {
                    this.HB_CopyText();
                }
            }
        }
        private void BibleText_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                if (this.BibleText.Text != "")
                {
                    Point pt = default(Point);
                    pt = this.BibleText.PointToClient(Cursor.Position);
                    int charIndexFromPosition = this.BibleText.GetCharIndexFromPosition(pt);
                    if (!(charIndexFromPosition < this.BibleText.SelectionStart | charIndexFromPosition > this.BibleText.SelectionStart + this.BibleText.SelectionLength - 1))
                    {
                        string data = "";
                        this.BibleText.DoDragDrop(new DataObject(FrmMain.DragDropSource.BiblePassage.ToString(), data), DragDropEffects.Link);
                    }
                }
            }
            else
            {
                if (e.Button == MouseButtons.Right)
                {
                    for (int i = 0; i <= this.CMenuBible.Items.Count - 1; i++)
                    {
                        this.CMenuBible.Items[i].Enabled = base.Enabled;
                    }
                    if (this.BibleText.Text == "")
                    {
                        this.CMenuBible.Items[0].Enabled = false;
                        this.CMenuBible.Items[1].Enabled = false;
                        this.CMenuBible.Items[2].Enabled = false;
                    }
                    if (this.BibleText.SelectedText != "")
                    {
                        this.CMenuBible.Items[4].Enabled = true;
                        this.BuildBibleTextR2SubMenus();
                    }
                }
            }
        }
        private void BuildBibleTextR2SubMenus()
        {
            this.CMenuBible_AddRegion2.DropDownItems.Clear();
            ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
            for (int i = 0; i <= gf.HB_TotalVersions - 1; i++)
            {
                toolStripMenuItem = new ToolStripMenuItem();
                toolStripMenuItem.Text = gf.HB_Versions[i, 1];
                this.CMenuBible_AddRegion2.DropDownItems.Add(toolStripMenuItem);
                this.CMenuBible_AddRegion2.DropDownItems[i].Tag = i.ToString();
            }
            //EventHandler value = new EventHandler(new EventHandler(this, ldftn(BibleR2MenuClickHandler)).Invoke);
            foreach (ToolStripMenuItem toolStripMenuItem2 in this.CMenuBible_AddRegion2.DropDownItems)
            {
                //toolStripMenuItem2.Click += value;
            }
        }
        private void BibleUserLookup_ShowVerses()
        {
            this.Cursor = Cursors.WaitCursor;
            string text = this.BibleUserLookup.Text;
            int num = 0;
            int num2 = 0;
            int num3 = 0;
            int num4 = 0;
            bool flag = this.BibleUserLookupValidation(ref text, ref num, ref num2, ref num3, ref num4);
            this.BibleUserLookup.Text = text;
            if (flag)
            {
                int num5 = 0;
                int num6 = 0;
                for (int i = 1; i <= gf.HB_VersesLocation[0, 0]; i++)
                {
                    if (num == gf.HB_VersesLocation[i, 2] & num2 == gf.HB_VersesLocation[i, 3])
                    {
                        num5 = i;
                    }
                }
                if (num5 > 0)
                {
                    for (int i = num5; i <= gf.HB_VersesLocation[0, 0]; i++)
                    {
                        if (num3 >= gf.HB_VersesLocation[i, 2] & num4 >= gf.HB_VersesLocation[i, 3])
                        {
                            num6 = i;
                        }
                    }
                    if (num6 > 0)
                    {
                        num4 = gf.HB_VersesLocation[num6, 3];
                        this.BibleText.SelectionLength = 0;
                        this.BibleText.SelectionStart = gf.HB_VersesLocation[num5, 4];
                        this.BibleText.ScrollToCaret();
                        if (num3 < 1)
                        {
                            if (num2 > 0)
                            {
                                this.HB_StartBuildStringProcess();
                            }
                            this.BibleUserLookup.Focus();
                        }
                        else
                        {
                            if (num4 > 0)
                            {
                                this.BibleText.SelectionLength = gf.HB_VersesLocation[num6, 4] - gf.HB_VersesLocation[num5, 4] + gf.HB_VersesLocation[num6, 5] - 2;
                                this.HB_StartBuildStringProcess();
                                this.BibleUserLookup.Focus();
                            }
                        }
                    }
                }
            }
            this.Cursor = Cursors.Default;
        }
        private bool BibleUserLookupValidation(ref string InText, ref int StartChapterNo, ref int StartVerseNo, ref int EndChapterNo, ref int EndVerseNo)
        {
            bool result;
            if (this.BookLookup.Text == "" | this.BookLookup.SelectedIndex == 66 | gf.Trim(InText) == "")
            {
                result = false;
            }
            else
            {
                string text = gf.Trim(InText);
                if (text.IndexOf("  ") >= 0)
                {
                    result = false;
                }
                else
                {
                    text = text.Replace('.', ':');
                    text = text.Replace('v', ':');
                    text = text.Replace('V', ':');
                    string text2 = text;
                    string text3 = "";
                    bool flag = true;
                    if (text.IndexOf('-') < 0)
                    {
                        int num = text.IndexOf(' ');
                        if (num >= 0)
                        {
                            int num2 = text.IndexOf(':');
                            if (num2 >= 0 && num2 < num)
                            {
                                text = text.Insert(num, "-");
                                text = text.Remove(num + 1, 1);
                            }
                            else
                            {
                                num = text.IndexOf(' ', num + 1);
                                if (num >= 0)
                                {
                                    text = text.Insert(num, "-");
                                    text = text.Remove(num + 1, 1);
                                }
                                else
                                {
                                    text = text.Replace(" ", "-");
                                }
                            }
                        }
                    }
                    if (text.IndexOf('-') >= 0)
                    {
                        this.sArray = text.Split(new char[]
						{
							'-'
						});
                        text2 = gf.Trim(this.sArray[0]);
                        text3 = gf.Trim(this.sArray[1]);
                    }
                    else
                    {
                        if (text.IndexOf(' ') >= 0)
                        {
                            this.sArray = text.Split(new char[]
							{
								'-'
							});
                            text2 = gf.Trim(this.sArray[0]);
                            text3 = gf.Trim(this.sArray[1]);
                        }
                    }
                    text2 = text2.Replace(' ', ':');
                    text3 = text3.Replace(' ', ':');
                    InText = text2 + ((text3 != "") ? ("-" + text3) : "");
                    StartChapterNo = 1;
                    StartVerseNo = 1;
                    EndChapterNo = 1;
                    EndVerseNo = 1;
                    this.sArray = text2.Split(new char[]
					{
						':'
					});
                    StartChapterNo = gf.StringToInt(this.sArray[0]);
                    if (StartChapterNo <= 0)
                    {
                        result = false;
                    }
                    else
                    {
                        if (this.sArray.GetUpperBound(0) < 1)
                        {
                            StartVerseNo = 1;
                        }
                        else
                        {
                            StartVerseNo = 1;
                            int num3 = gf.StringToInt(this.sArray[1]);
                            if (num3 > 0)
                            {
                                StartVerseNo = num3;
                            }
                            flag = false;
                        }
                        if (text3 == "")
                        {
                            EndChapterNo = StartChapterNo;
                            if (flag)
                            {
                                EndVerseNo = 200;
                            }
                            else
                            {
                                EndVerseNo = StartVerseNo;
                            }
                        }
                        else
                        {
                            this.sArray = text3.Split(new char[]
							{
								':'
							});
                            if (this.sArray.GetUpperBound(0) < 1)
                            {
                                if (flag)
                                {
                                    EndChapterNo = gf.StringToInt(this.sArray[0]);
                                    EndVerseNo = 200;
                                }
                                else
                                {
                                    EndChapterNo = StartChapterNo;
                                    EndVerseNo = gf.StringToInt(this.sArray[0]);
                                }
                            }
                            else
                            {
                                EndChapterNo = gf.StringToInt(this.sArray[0]);
                                EndVerseNo = 1;
                                EndVerseNo = gf.StringToInt(this.sArray[1]);
                            }
                        }
                        result = true;
                    }
                }
            }
            return result;
        }
        private void MoveSongUp()
        {
            int count = this.WorshipListItems.Items.Count;
            if (count >= 1)
            {
                int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                if (selectedIndex >= 1)
                {
                    this.TimerFlasher.Stop();
                    for (int i = 0; i <= 7; i++)
                    {
                        string text = this.WorshipListItems.Items[selectedIndex].SubItems[i].Text;
                        this.WorshipListItems.Items[selectedIndex].SubItems[i].Text = this.WorshipListItems.Items[selectedIndex - 1].SubItems[i].Text;
                        this.WorshipListItems.Items[selectedIndex - 1].SubItems[i].Text = text;
                    }
                    int imageIndex = this.WorshipListItems.Items[selectedIndex].ImageIndex;
                    this.WorshipListItems.Items[selectedIndex].ImageIndex = this.WorshipListItems.Items[selectedIndex - 1].ImageIndex;
                    this.WorshipListItems.Items[selectedIndex - 1].ImageIndex = imageIndex;
                    this.WorshipListItems.Items[selectedIndex].Selected = false;
                    this.WorshipListItems.Items[selectedIndex - 1].Selected = true;
                    this.WorshipListItems.EnsureVisible(selectedIndex - 1);
                    gf.PreviewItem.CurItemNo = selectedIndex;
                    this.UpdateOutputCurItemNo();
                    this.TimerFlasher.Start();
                }
            }
        }
        private void MoveSongDown()
        {
            int count = this.WorshipListItems.Items.Count;
            if (count > 1)
            {
                int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                if (!(selectedIndex < 0 | selectedIndex == count - 1))
                {
                    this.TimerFlasher.Stop();
                    for (int i = 0; i <= 7; i++)
                    {
                        string text = this.WorshipListItems.Items[selectedIndex].SubItems[i].Text;
                        this.WorshipListItems.Items[selectedIndex].SubItems[i].Text = this.WorshipListItems.Items[selectedIndex + 1].SubItems[i].Text;
                        this.WorshipListItems.Items[selectedIndex + 1].SubItems[i].Text = text;
                    }
                    int imageIndex = this.WorshipListItems.Items[selectedIndex].ImageIndex;
                    this.WorshipListItems.Items[selectedIndex].ImageIndex = this.WorshipListItems.Items[selectedIndex + 1].ImageIndex;
                    this.WorshipListItems.Items[selectedIndex + 1].ImageIndex = imageIndex;
                    this.WorshipListItems.Items[selectedIndex].Selected = false;
                    this.WorshipListItems.Items[selectedIndex + 1].Selected = true;
                    this.WorshipListItems.EnsureVisible(selectedIndex + 1);
                    gf.PreviewItem.CurItemNo = selectedIndex + 2;
                    this.UpdateOutputCurItemNo();
                    this.UpdateWorshipShowIcons();
                    this.TimerFlasher.Start();
                }
            }
        }
        private bool RemoveWorshipListSong()
        {
            return this.RemoveWorshipListSong(true);
        }
        private bool RemoveWorshipListSong(bool UpdateCurItemNo)
        {
            bool flag = false;
            int num = -1;
            bool result;
            if (this.WorshipListItems.Items.Count == 0)
            {
                result = false;
            }
            else
            {
                for (int i = this.WorshipListItems.Items.Count - 1; i >= 0; i--)
                {
                    if (this.WorshipListItems.Items[i].Selected)
                    {
                        this.WorshipListItems.Items[i].Remove();
                        num = i;
                    }
                }
                if (!UpdateCurItemNo)
                {
                    result = false;
                }
                else
                {
                    if (gf.OutputItem.CurItemNo == num + 1)
                    {
                        flag = true;
                    }
                    if (this.WorshipListItems.Items.Count > num)
                    {
                        if (num >= 0)
                        {
                            this.WorshipListItems.Items[num].Selected = true;
                        }
                    }
                    else
                    {
                        if (this.WorshipListItems.Items.Count > 0)
                        {
                            if (num - 1 >= 0 && num <= this.WorshipListItems.Items.Count)
                            {
                                this.WorshipListItems.Items[num - 1].Selected = true;
                            }
                            else
                            {
                                this.WorshipListItems.Items[this.WorshipListItems.Items.Count - 1].Selected = true;
                            }
                        }
                    }
                    this.ShowStatusBarSummary();
                    this.WorshipListIndexChanged();
                    this.UpdateOutputCurItemNo();
                    if (flag)
                    {
                        this.CopyPreviewToOutput();
                    }
                    result = true;
                }
            }
            return result;
        }
        private void SetDocLayout(gf.PraiseBookLayout InLayout)
        {
            gf.PB_FormatChanged = false;
            gf.PB_Layout = InLayout;
            FrmGenerateDoc frmGenerateDoc = new FrmGenerateDoc();
            if (InLayout == gf.PraiseBookLayout.WorshipList)
            {
                this.LoadWorshipList(1);
                gf.PB_FullFileName = gf.RootEasiSlidesDir + "Documents\\" + gf.CurSession + ".rtf";
                gf.PB_DocumentName = gf.CurSession;
                if (this.PrepareWorshipListLyricsForRTF())
                {
                    frmGenerateDoc.ShowDialog();
                    if (gf.PB_FormatChanged)
                    {
                        this.SaveWorshipList();
                    }
                }
            }
            else
            {
                this.LoadPraiseBook(1);
                gf.PB_FullFileName = gf.RootEasiSlidesDir + "Documents\\" + gf.CurPraiseBook + ".rtf";
                gf.PB_DocumentName = gf.CurPraiseBook;
                if (this.PreparePraiseBookLyricsForRTF())
                {
                    frmGenerateDoc.ShowDialog();
                    if (gf.PB_FormatChanged)
                    {
                        this.SavePraiseBook();
                    }
                }
            }
        }
        private bool PrepareWorshipListLyricsForRTF()
        {
            bool result;
            if (this.WorshipListItems.Items.Count > 0)
            {
                int num = this.ValidateWorshipListItems(true);
                if (num >= 0)
                {
                    result = false;
                }
                else
                {
                    for (int i = 0; i <= this.WorshipListItems.Items.Count - 1; i++)
                    {
                        gf.DocumentSongs[i + 1, 0] = gf.WorshipSongs[i + 1, 0];
                        gf.DocumentSongs[i + 1, 1] = gf.WorshipSongs[i + 1, 1];
                        gf.DocumentSongs[i + 1, 2] = gf.RemoveMusicSym(gf.Trim(gf.WorshipSongs[i + 1, 2]));
                        gf.DocumentSongs[i + 1, 3] = gf.WorshipSongs[i + 1, 3];
                        gf.DocumentSongs[i + 1, 4] = '>' + gf.ExtractHeaderInfo(gf.WorshipSongs[i + 1, 4], 71, '>');
                    }
                    gf.TotalPraiseBookItems = this.WorshipListItems.Items.Count;
                    result = true;
                }
            }
            else
            {
                MessageBox.Show("Can't produce lyrics document because the Worship List is empty!");
                result = false;
            }
            return result;
        }
        private bool PreparePraiseBookLyricsForRTF()
        {
            bool result;
            if (this.PraiseBookItems.Items.Count > 0)
            {
                this.ValidatePraiseBookItems();
                result = true;
            }
            else
            {
                MessageBox.Show("Can't produce lyrics document because the PraiseBook is empty!");
                result = false;
            }
            return result;
        }
        private void RemovePraiseBookListSong()
        {
            int num = -1;
            if (this.PraiseBookItems.Items.Count != 0)
            {
                for (int i = this.PraiseBookItems.Items.Count - 1; i >= 0; i--)
                {
                    if (this.PraiseBookItems.Items[i].Selected)
                    {
                        this.PraiseBookItems.Items[i].Remove();
                        num = i;
                    }
                }
                this.SavePraiseBook();
                if (this.PraiseBookItems.Items.Count > num)
                {
                    this.PraiseBookItems.Items[num].Selected = true;
                }
                else
                {
                    if (this.PraiseBookItems.Items.Count > 0)
                    {
                        if (num - 1 >= 0 && num <= this.PraiseBookItems.Items.Count)
                        {
                            this.PraiseBookItems.Items[num - 1].Selected = true;
                        }
                        else
                        {
                            this.PraiseBookItems.Items[this.PraiseBookItems.Items.Count - 1].Selected = true;
                        }
                    }
                }
                this.PraiseBookListIndexChanged();
                if (gf.UseSongNumbers)
                {
                    for (int i = 0; i <= this.PraiseBookItems.Items.Count - 1; i++)
                    {
                        this.PraiseBookItems.Items[i].SubItems[1].Text = this.PraiseBookItems.Items[i].SubItems[5].Text;
                    }
                }
                else
                {
                    for (int i = 0; i <= this.PraiseBookItems.Items.Count - 1; i++)
                    {
                        this.PraiseBookItems.Items[i].SubItems[1].Text = Convert.ToString(i + 1);
                    }
                }
                this.ShowStatusBarSummary();
            }
        }
        private void TimerFlasher_Tick(object sender, EventArgs e)
        {
            gf.TimerFlashOn = !gf.TimerFlashOn;
            if (this.cbGoLive.Checked)
            {
                this.cbGoLive.ImageIndex = (gf.TimerFlashOn ? 8 : 9);
                //this.cbGoLive.BackColor = (gf.TimerFlashOn ? Color.Blue : Color.Brown);
            }
            if (this.cbOutputBlack.Checked)
            {
                this.cbOutputBlack.ImageIndex = (gf.TimerFlashOn ? 2 : 3);
            }
            if (this.cbOutputClear.Checked)
            {
                this.cbOutputClear.ImageIndex = (gf.TimerFlashOn ? 4 : 5);
            }
            if (this.cbOutputCam.Checked)
            {
                this.cbOutputCam.ImageIndex = (gf.TimerFlashOn ? 6 : 7);
            }
            if (gf.ShowRunning)
            {
                if (gf.DualMonitorMode & gf.LaunchShowUpdateDone)
                {
                    base.Focus();
                    gf.LaunchShowUpdateDone = false;
                }
                if (gf.OutputItem.CurItemNo > 0)
                {
                    try
                    {
                        if (this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 0 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 2 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 4 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 6 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 8 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 28 || this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex == 10)
                        {
                            this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex + (gf.TimerFlashOn ? 1 : 0);
                        }
                        else
                        {
                            this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex = this.WorshipListItems.Items[gf.StartPresAt - 1].ImageIndex - 1 + (gf.TimerFlashOn ? 1 : 0);
                        }
                    }
                    catch
                    {
                    }
                }
                this.SetStatusBarMediaTimings();
            }
        }
        public void Remote_SongChanged()
        {
            if (gf.DualMonitorMode)
            {
                this.LoadWorshipListItemToOutput(gf.LiveItem.CurItemNo, gf.LiveItem.CurSlide, false);
                this.FocusOutputArea();
                base.Focus();
            }
        }
        public void Remote_SlideChanged()
        {
            if (gf.DualMonitorMode)
            {
                gf.OutputItem.CurSlide = gf.LiveItem.CurSlide;
                this.MoveToSlideOutputItem(gf.OutputItem, gf.KeyDirection.Refresh, false);
                this.FocusOutputArea();
                base.Focus();
            }
        }
        public void Remote_MovedToGapItem()
        {
            if (gf.DualMonitorMode)
            {
                this.LoadItem(ref gf.OutputItem, "G1", "", 0);
                this.FocusOutputArea();
                base.Focus();
            }
        }
        public void Remote_EndShow()
        {
            if (gf.DualMonitorMode)
            {
                this.GoLive(false);
            }
        }
        private void ItemKeyPressed(gf.SongSettings InItem, Keys KeyCode, bool ShiftKey)
        {
            if (gf.EasiSlidesMode != gf.UsageMode.PraiseBook && KeyCode != Keys.Tab)
            {
                gf.ReMapKeyBoard(ref KeyCode);
                if (KeyCode == Keys.Home)
                {
                    this.ManualMoveToItem(InItem, gf.KeyDirection.FirstOne);
                }
                else
                {
                    if (KeyCode == Keys.Prior)
                    {
                        this.ManualMoveToItem(InItem, gf.KeyDirection.PrevOne);
                    }
                    else
                    {
                        if (KeyCode == Keys.Next)
                        {
                            this.ManualMoveToItem(InItem, gf.KeyDirection.NextOne);
                        }
                        else
                        {
                            if (KeyCode == Keys.End)
                            {
                                this.ManualMoveToItem(InItem, gf.KeyDirection.LastOne);
                            }
                            else
                            {
                                if (KeyCode == Keys.Tab)
                                {
                                    this.ManualMoveToItem(InItem, gf.KeyDirection.NextOne);
                                }
                                else
                                {
                                    if (KeyCode == Keys.Up)
                                    {
                                        this.MoveToSlide(InItem, gf.KeyDirection.PrevOne);
                                    }
                                    else
                                    {
                                        if (KeyCode == Keys.Left)
                                        {
                                            this.MoveToSlide(InItem, gf.KeyDirection.FirstOne);
                                        }
                                        else
                                        {
                                            if (KeyCode == Keys.Right)
                                            {
                                                this.MoveToSlide(InItem, gf.KeyDirection.LastOne);
                                            }
                                            else
                                            {
                                                if (KeyCode == Keys.Down)
                                                {
                                                    this.MoveToSlide(InItem, gf.KeyDirection.NextOne);
                                                }
                                                else
                                                {
                                                    if (KeyCode == Keys.Space)
                                                    {
                                                        this.MoveToSlide(InItem, gf.KeyDirection.NextOne);
                                                    }
                                                    else
                                                    {
                                                        if (KeyCode == Keys.W || (ShiftKey && KeyCode == Keys.B))
                                                        {
                                                            this.JumpToVerseType(InItem, 103);
                                                        }
                                                        else
                                                        {
                                                            if (KeyCode == Keys.B)
                                                            {
                                                                this.JumpToVerseType(InItem, 100);
                                                            }
                                                            else
                                                            {
                                                                if (KeyCode == Keys.Q || (ShiftKey && KeyCode == Keys.P))
                                                                {
                                                                    this.JumpToVerseType(InItem, 112);
                                                                }
                                                                else
                                                                {
                                                                    if (KeyCode == Keys.P)
                                                                    {
                                                                        this.JumpToVerseType(InItem, 111);
                                                                    }
                                                                    else
                                                                    {
                                                                        if (KeyCode == Keys.E)
                                                                        {
                                                                            this.JumpToVerseType(InItem, 101);
                                                                        }
                                                                        else
                                                                        {
                                                                            if (KeyCode == Keys.G)
                                                                            {
                                                                                if (gf.GapItemOption == gf.GapType.None)
                                                                                {
                                                                                    gf.GapItemOption = gf.AltGapItemOption;
                                                                                    gf.AltGapItemOption = gf.GapType.None;
                                                                                }
                                                                                else
                                                                                {
                                                                                    gf.AltGapItemOption = gf.GapItemOption;
                                                                                    gf.GapItemOption = gf.GapType.None;
                                                                                }
                                                                                this.ShowStatusBarSummary();
                                                                            }
                                                                            else
                                                                            {
                                                                                if (KeyCode == Keys.Z)
                                                                                {
                                                                                    if (InItem.OutputStyleScreen)
                                                                                    {
                                                                                        this.QueryShowActive();
                                                                                    }
                                                                                }
                                                                                else
                                                                                {
                                                                                    if (KeyCode == Keys.A)
                                                                                    {
                                                                                        this.SetRotateState(!gf.AutoRotateOn);
                                                                                    }
                                                                                    else
                                                                                    {
                                                                                        if (KeyCode == Keys.J)
                                                                                        {
                                                                                            this.GotoNextNonRotateItem(InItem);
                                                                                        }
                                                                                        else
                                                                                        {
                                                                                            if (KeyCode == Keys.M)
                                                                                            {
                                                                                                if (InItem.OutputStyleScreen)
                                                                                                {
                                                                                                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_MediaItemPausePlay);
                                                                                                }
                                                                                            }
                                                                                            else
                                                                                            {
                                                                                                if (KeyCode == Keys.T || (ShiftKey && KeyCode == Keys.C))
                                                                                                {
                                                                                                    this.JumpToVerseType(InItem, 102);
                                                                                                }
                                                                                                else
                                                                                                {
                                                                                                    if (KeyCode == Keys.C)
                                                                                                    {
                                                                                                        KeyCode = Keys.D0;
                                                                                                    }
                                                                                                    else
                                                                                                    {
                                                                                                        if (KeyCode == Keys.D0 || KeyCode == Keys.NumPad0)
                                                                                                        {
                                                                                                            KeyCode = Keys.D0;
                                                                                                        }
                                                                                                        else
                                                                                                        {
                                                                                                            if (KeyCode == Keys.D1 || KeyCode == Keys.NumPad1)
                                                                                                            {
                                                                                                                KeyCode = Keys.D1;
                                                                                                            }
                                                                                                            else
                                                                                                            {
                                                                                                                if (KeyCode == Keys.D2 || KeyCode == Keys.NumPad2)
                                                                                                                {
                                                                                                                    KeyCode = Keys.D2;
                                                                                                                }
                                                                                                                else
                                                                                                                {
                                                                                                                    if (KeyCode == Keys.D3 || KeyCode == Keys.NumPad3)
                                                                                                                    {
                                                                                                                        KeyCode = Keys.D3;
                                                                                                                    }
                                                                                                                    else
                                                                                                                    {
                                                                                                                        if (KeyCode == Keys.D4 || KeyCode == Keys.NumPad4)
                                                                                                                        {
                                                                                                                            KeyCode = Keys.D4;
                                                                                                                        }
                                                                                                                        else
                                                                                                                        {
                                                                                                                            if (KeyCode == Keys.D5 || KeyCode == Keys.NumPad5)
                                                                                                                            {
                                                                                                                                KeyCode = Keys.D5;
                                                                                                                            }
                                                                                                                            else
                                                                                                                            {
                                                                                                                                if (KeyCode == Keys.D6 || KeyCode == Keys.NumPad6)
                                                                                                                                {
                                                                                                                                    KeyCode = Keys.D6;
                                                                                                                                }
                                                                                                                                else
                                                                                                                                {
                                                                                                                                    if (KeyCode == Keys.D7 || KeyCode == Keys.NumPad7)
                                                                                                                                    {
                                                                                                                                        KeyCode = Keys.D7;
                                                                                                                                    }
                                                                                                                                    else
                                                                                                                                    {
                                                                                                                                        if (KeyCode == Keys.D8 || KeyCode == Keys.NumPad8)
                                                                                                                                        {
                                                                                                                                            KeyCode = Keys.D8;
                                                                                                                                        }
                                                                                                                                        else
                                                                                                                                        {
                                                                                                                                            if (KeyCode != Keys.D9 && KeyCode != Keys.NumPad9)
                                                                                                                                            {
                                                                                                                                                goto IL_425;
                                                                                                                                            }
                                                                                                                                            KeyCode = Keys.D9;
                                                                                                                                        }
                                                                                                                                    }
                                                                                                                                }
                                                                                                                            }
                                                                                                                        }
                                                                                                                    }
                                                                                                                }
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                    if (InItem.OutputStyleScreen)
                                                                                                    {
                                                                                                        if (InItem.SongVerses[KeyCode - Keys.D0] > 0)
                                                                                                        {
                                                                                                            InItem.CurSlide = InItem.SongVerses[KeyCode - Keys.D0];
                                                                                                            this.MoveToSlide(InItem, gf.KeyDirection.Refresh);
                                                                                                            KeyCode = Keys.None;
                                                                                                        }
                                                                                                    }
                                                                                                    else
                                                                                                    {
                                                                                                        if (InItem.SongVerses[KeyCode - Keys.D0] > 0)
                                                                                                        {
                                                                                                            InItem.CurSlide = InItem.SongVerses[KeyCode - Keys.D0];
                                                                                                            this.MoveToSlide(InItem, gf.KeyDirection.Refresh);
                                                                                                            KeyCode = Keys.None;
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            IL_425: ;
            }
        }
        private void JumpToVerseType(gf.SongSettings InItem, int InOtherVerse)
        {
            for (int i = 1; i <= InItem.TotalSlides; i++)
            {
                if (InItem.Slide[i, 0] == InOtherVerse)
                {
                    InItem.CurSlide = i;
                    this.MoveToSlide(InItem, gf.KeyDirection.Refresh);
                    break;
                }
            }
        }
        private void ManualMoveToItem(gf.SongSettings InItem, gf.KeyDirection InDirection)
        {
            this.MoveToItem(InItem, InDirection, 0, true);
        }
        private void ManualMoveToItem(gf.SongSettings InItem, int GotoItemNumber)
        {
            if (GotoItemNumber <= this.WorshipListItems.Items.Count)
            {
                InItem.CurItemNo = GotoItemNumber;
                gf.StartPresAt = GotoItemNumber;
                this.MoveToItem(InItem, gf.KeyDirection.Refresh, 0, true);
            }
        }
        private void MoveToItem(gf.SongSettings InItem, gf.KeyDirection InDirection, int SlideNo, bool NotifyLiveShow)
        {
            if (InItem.OutputStyleScreen)
            {
                this.MoveToOutputItem(InItem, InDirection, SlideNo, NotifyLiveShow);
            }
            else
            {
                if (!InItem.OutputStyleScreen)
                {
                    this.MoveToPreviewItem(InItem, InDirection);
                }
            }
        }
        private void MoveToOutputItem(gf.SongSettings InItem, gf.KeyDirection InDirection, int SlideNo, bool NotifyLiveShow)
        {
            if (!(InItem.Type == "G") || gf.TotalWorshipListItems != 0)
            {
                gf.Launch_StartPresAt = gf.StartPresAt;
                if (InDirection == gf.KeyDirection.FirstOne)
                {
                    this.LoadWorshipListItemToOutput(1, SlideNo, false);
                }
                else
                {
                    if (InDirection == gf.KeyDirection.PrevOne)
                    {
                        this.LoadWorshipListItemToOutput((InItem.CurItemNo > 0 & InItem.OutputStyleScreen) ? (gf.StartPresAt - ((InItem.Type == "G") ? 0 : 1)) : gf.StartPresAt, SlideNo, false);
                    }
                    else
                    {
                        if (InDirection == gf.KeyDirection.NextOne)
                        {
                            if (gf.GapItemOption == gf.GapType.None)
                            {
                                this.LoadWorshipListItemToOutput(gf.StartPresAt + 1, SlideNo, false);
                            }
                            else
                            {
                                if (gf.StartPresAt == 0 || (InItem.Type == "G" && gf.Launch_StartPresAt != gf.TotalWorshipListItems))
                                {
                                    this.LoadWorshipListItemToOutput(gf.StartPresAt + 1, SlideNo, false);
                                }
                                else
                                {
                                    this.LoadItem(ref InItem, "G1", "", 0);
                                }
                            }
                        }
                        else
                        {
                            if (InDirection == gf.KeyDirection.LastOne)
                            {
                                this.LoadWorshipListItemToOutput(this.WorshipListItems.Items.Count, SlideNo, false);
                            }
                            else
                            {
                                this.LoadWorshipListItemToOutput(InItem.CurItemNo, SlideNo, false);
                            }
                        }
                    }
                }
                if (gf.ShowRunning && NotifyLiveShow)
                {
                    gf.MainAction_SongChanged_Transaction = ImageTransitionControl.TransitionAction.AsStored;
                    gf.MainAction_MoveToItemKeyDirection = InDirection;
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_MoveToItemChanged);
                }
                this.FocusOutputArea();
            }
        }
        private void MoveToPreviewItem(gf.SongSettings InItem, gf.KeyDirection InDirection)
        {
            if (this.WorshipListItems.Items.Count >= 1)
            {
                int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                this.WorshipListItems.SelectedItems.Clear();
                if (InDirection == gf.KeyDirection.FirstOne)
                {
                    this.WorshipListItems.Items[0].Selected = true;
                    this.WorshipListItems.EnsureVisible(0);
                }
                else
                {
                    if (InDirection == gf.KeyDirection.PrevOne)
                    {
                        if (selectedIndex > 0)
                        {
                            this.WorshipListItems.Items[selectedIndex - 1].Selected = true;
                            this.WorshipListItems.EnsureVisible(selectedIndex - 1);
                        }
                        else
                        {
                            this.WorshipListItems.Items[0].Selected = true;
                            this.WorshipListItems.EnsureVisible(0);
                        }
                    }
                    else
                    {
                        if (InDirection == gf.KeyDirection.NextOne)
                        {
                            if (selectedIndex <= this.WorshipListItems.Items.Count - 2)
                            {
                                this.WorshipListItems.Items[selectedIndex + 1].Selected = true;
                                this.WorshipListItems.EnsureVisible(selectedIndex + 1);
                            }
                            else
                            {
                                this.WorshipListItems.Items[this.WorshipListItems.Items.Count - 1].Selected = true;
                                this.WorshipListItems.EnsureVisible(this.WorshipListItems.Items.Count - 1);
                            }
                        }
                        else
                        {
                            if (InDirection == gf.KeyDirection.LastOne)
                            {
                                this.WorshipListItems.Items[this.WorshipListItems.Items.Count - 1].Selected = true;
                                this.WorshipListItems.EnsureVisible(this.WorshipListItems.Items.Count - 1);
                            }
                        }
                    }
                }
                this.WorshipListIndexChanged();
                this.FocusPreviewArea();
            }
        }
        private void MoveToSlide(gf.SongSettings InItem, gf.KeyDirection InDirection)
        {
            if (InItem.OutputStyleScreen)
            {
                if (InDirection != gf.KeyDirection.NextOne || InItem.CurSlide < InItem.TotalSlides || gf.AdvanceNextItem)
                {
                    this.MoveToSlideOutputItem(InItem, InDirection, true);
                    this.SetOutputPPThumbImages(gf.OutputItem.CurSlide);
                }
            }
            else
            {
                this.MoveToSlidePreviewItem(InItem, InDirection);
                this.SetPreviewPPThumbImages(gf.PreviewItem.CurSlide);
            }
        }
        private void MoveToSlideOutputItem(gf.SongSettings InItem, gf.KeyDirection InDirection, bool NotifyLiveShow)
        {
            if (gf.AdvanceNextItem)
            {
                if (InDirection == gf.KeyDirection.PrevOne)
                {
                    if (InItem.Type == "G")
                    {
                        this.MoveToItem(InItem, gf.KeyDirection.Refresh, 30000, NotifyLiveShow);
                        return;
                    }
                    if (InItem.CurItemNo > 1 && InItem.CurSlide < 2)
                    {
                        this.MoveToItem(InItem, gf.KeyDirection.PrevOne, 30000, NotifyLiveShow);
                        return;
                    }
                }
                else
                {
                    if (InDirection == gf.KeyDirection.NextOne && InItem.CurItemNo < this.WorshipListItems.Items.Count)
                    {
                        if (InItem.CurSlide >= InItem.TotalSlides)
                        {
                            if (gf.ShowRunning & InItem.Type == "P")
                            {
                                int num = this.MainPPT.ImplementPowerpointSlideMovement(ref InItem.CurSlide, InItem.TotalSlides, gf.ReMapKeyDirectionToPowerpoint(InDirection));
                                if (num > 0)
                                {
                                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SlideChanged, InDirection);
                                    this.ShowDualMonitorPP_Preview(ref InItem);
                                    if (InItem.CurSlide < 1)
                                    {
                                        InItem.CurSlide = InItem.TotalSlides;
                                    }
                                    this.ShowStatusBarSummary();
                                    return;
                                }
                            }
                            this.MoveToItem(InItem, gf.KeyDirection.NextOne, 0, NotifyLiveShow);
                            return;
                        }
                    }
                }
            }
            if (gf.ShowRunning & InItem.Type == "P")
            {
                this.MainPPT.ImplementPowerpointSlideMovement(ref InItem.CurSlide, InItem.TotalSlides, gf.ReMapKeyDirectionToPowerpoint(InDirection));
                if (InItem.CurSlide >= 0 && InItem.CurSlide <= InItem.TotalSlides)
                {
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SlideChanged, InDirection);
                    this.ShowDualMonitorPP_Preview(ref InItem);
                }
                else
                {
                    if (InItem.CurSlide < 1)
                    {
                        InItem.CurSlide = InItem.TotalSlides;
                    }
                }
            }
            else
            {
                if (InDirection == gf.KeyDirection.FirstOne)
                {
                    InItem.CurSlide = 1;
                }
                else
                {
                    if (InDirection == gf.KeyDirection.PrevOne)
                    {
                        if (InItem.CurSlide > 2)
                        {
                            InItem.CurSlide--;
                        }
                        else
                        {
                            InItem.CurSlide = 1;
                        }
                    }
                    else
                    {
                        if (InDirection == gf.KeyDirection.NextOne)
                        {
                            if (InItem.CurSlide < InItem.TotalSlides)
                            {
                                InItem.CurSlide++;
                            }
                            else
                            {
                                if (gf.GapItemOption != gf.GapType.None)
                                {
                                    this.MoveToItem(InItem, gf.KeyDirection.NextOne, 0, NotifyLiveShow);
                                    return;
                                }
                                InItem.CurSlide = InItem.TotalSlides;
                            }
                        }
                        else
                        {
                            if (InDirection == gf.KeyDirection.LastOne)
                            {
                                InItem.CurSlide = InItem.TotalSlides;
                            }
                        }
                    }
                }
                this.ImplementSlideMove(InItem, true);
                if (gf.ShowRunning && NotifyLiveShow)
                {
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SlideChanged);
                }
            }
            this.ShowStatusBarSummary();
        }
        private void MoveToSlidePreviewItem(gf.SongSettings InItem, gf.KeyDirection InDirection)
        {
            if (InDirection == gf.KeyDirection.FirstOne)
            {
                InItem.CurSlide = 1;
            }
            else
            {
                if (InDirection == gf.KeyDirection.PrevOne)
                {
                    if (InItem.CurSlide > 2)
                    {
                        InItem.CurSlide--;
                    }
                    else
                    {
                        InItem.CurSlide = 1;
                    }
                }
                else
                {
                    if (InDirection == gf.KeyDirection.NextOne)
                    {
                        if (InItem.CurSlide < InItem.TotalSlides)
                        {
                            InItem.CurSlide++;
                        }
                        else
                        {
                            InItem.CurSlide = InItem.TotalSlides;
                        }
                    }
                    else
                    {
                        if (InDirection == gf.KeyDirection.LastOne)
                        {
                            InItem.CurSlide = InItem.TotalSlides;
                        }
                    }
                }
            }
            this.ImplementSlideMove(InItem, true);
        }
        private void QueryShowActive()
        {
            if (this.OutputScreen.RefStatus())
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_ReferenceAlertHide);
                this.OutputScreen.StopRef();
            }
            else
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_ReferenceAlertShow);
                this.ShowSlide(ref gf.OutputItem, ImageTransitionControl.TransitionAction.None, true);
            }
        }
        private bool ImplementSlideMove(gf.SongSettings InItem, bool ScrollToTop)
        {
            InItem.Show_LicAdim = false;
            if (InItem.OutputStyleScreen)
            {
                this.HighlightOutputRichTextBox(true, ScrollToTop);
            }
            else
            {
                this.HighlightPreviewRichTextBox(true, ScrollToTop);
            }
            return this.ShowSlide(ref InItem, ImageTransitionControl.TransitionAction.AsStored);
        }
        public bool LoadWorshipListItemToOutput(int Selecteditem, int SlideNo)
        {
            return this.LoadWorshipListItemToOutput(Selecteditem, SlideNo, true);
        }
        public bool LoadWorshipListItemToOutput(int Selecteditem, int SlideNo, bool NotifyLiveShow)
        {
            bool result;
            if (this.WorshipListItems.Items.Count == 0)
            {
                result = false;
            }
            else
            {
                if (Selecteditem < 1)
                {
                    Selecteditem = 1;
                }
                else
                {
                    if (Selecteditem > this.WorshipListItems.Items.Count)
                    {
                        Selecteditem = this.WorshipListItems.Items.Count;
                    }
                }
                Selecteditem--;
                string text = this.WorshipListItems.Items[Selecteditem].SubItems[1].Text;
                string text2 = this.WorshipListItems.Items[Selecteditem].SubItems[2].Text;
                string text3 = this.WorshipListItems.Items[Selecteditem].SubItems[0].Text;
                gf.OutputItem.CurItemNo = Selecteditem + 1;
                gf.StartPresAt = gf.OutputItem.CurItemNo;
                gf.OutputItem.Source = gf.ItemSource.WorshipList;
                gf.OutputItem.OutputStyleScreen = true;
                this.LoadItem(ref gf.OutputItem, text, text2, SlideNo, ref text3, true);
                if (gf.ShowRunning && NotifyLiveShow)
                {
                    gf.MainAction_SongChanged_Transaction = ImageTransitionControl.TransitionAction.AsStored;
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SongChanged);
                }
                this.UpdateWorshipShowIcons();
                result = true;
            }
            return result;
        }
        private void PreviewBtnUpDown_Click(object sender, EventArgs e)
        {
            Button button = (Button)sender;
            string name = button.Name;
            if (name == "PreviewBtnItemUp")
            {
                this.ManualMoveToItem(gf.PreviewItem, gf.KeyDirection.PrevOne);
            }
            else
            {
                if (name == "PreviewBtnItemDown")
                {
                    this.ManualMoveToItem(gf.PreviewItem, gf.KeyDirection.NextOne);
                }
                else
                {
                    if (name == "PreviewBtnSlideUp")
                    {
                        this.MoveToSlide(gf.PreviewItem, gf.KeyDirection.PrevOne);
                    }
                    else
                    {
                        if (name == "PreviewBtnSlideDown")
                        {
                            this.MoveToSlide(gf.PreviewItem, gf.KeyDirection.NextOne);
                        }
                    }
                }
            }
            this.FocusPreviewArea();
        }
        private void OutputBtnJumpToNonRotate_Click(object sender, EventArgs e)
        {
            this.GotoNextNonRotateItem(gf.OutputItem);
            this.FocusOutputArea();
        }
        private void OutputBtnMedia_Click(object sender, EventArgs e)
        {
            if (gf.OutputItem.OutputStyleScreen)
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_MediaItemPausePlay);
            }
            this.FocusOutputArea();
        }
        private void OutputBtnRefAlert_Click(object sender, EventArgs e)
        {
            this.QueryShowActive();
            this.FocusOutputArea();
        }
        private void OutputBtnUpDown_Click(object sender, EventArgs e)
        {
            Button button = (Button)sender;
            string name = button.Name;
            if (name == "OutputBtnItemUp")
            {
                this.ManualMoveToItem(gf.OutputItem, gf.KeyDirection.PrevOne);
            }
            else
            {
                if (name == "OutputBtnItemDown")
                {
                    this.ManualMoveToItem(gf.OutputItem, gf.KeyDirection.NextOne);
                }
                else
                {
                    if (name == "OutputBtnSlideUp")
                    {
                        this.MoveToSlide(gf.OutputItem, gf.KeyDirection.PrevOne);
                    }
                    else
                    {
                        if (name == "OutputBtnSlideDown")
                        {
                            this.MoveToSlide(gf.OutputItem, gf.KeyDirection.NextOne);
                        }
                    }
                }
            }
            this.FocusOutputArea();
        }
        private void PreviewBtnVerse_Click(object sender, EventArgs e)
        {
            Button button = (Button)sender;
            int num = gf.ObjToInt(button.Tag);
            if (num < 10)
            {
                gf.PreviewItem.CurSlide = gf.PreviewItem.SongVerses[num];
            }
            else
            {
                for (int i = 1; i <= gf.PreviewItem.TotalSlides; i++)
                {
                    if (gf.PreviewItem.Slide[i, 0] == num)
                    {
                        gf.PreviewItem.CurSlide = i;
                        i = gf.PreviewItem.TotalSlides;
                    }
                }
            }
            this.MoveToSlide(gf.PreviewItem, gf.KeyDirection.Refresh);
            this.FocusPreviewArea();
        }
        private void OutputBtnVerse_Click(object sender, EventArgs e)
        {
            Button button = (Button)sender;
            int num = gf.ObjToInt(button.Tag);
            if (num < 10)
            {
                gf.OutputItem.CurSlide = gf.OutputItem.SongVerses[num];
            }
            else
            {
                for (int i = 1; i <= gf.OutputItem.TotalSlides; i++)
                {
                    if (gf.OutputItem.Slide[i, 0] == num)
                    {
                        gf.OutputItem.CurSlide = i;
                        i = gf.OutputItem.TotalSlides;
                    }
                }
            }
            this.MoveToSlide(gf.OutputItem, gf.KeyDirection.Refresh);
            this.FocusOutputArea();
        }
        private void FormControl_Enter(object sender, EventArgs e)
        {
            Control inControl = (Control)sender;
            gf.NormalTextRegionBackColour = this.SongFolder.BackColor;
            gf.Control_Enter(inControl);
        }
        private void FormControl_Leave(object sender, EventArgs e)
        {
            Control inControl = (Control)sender;
            gf.NormalTextRegionBackColour = this.SongFolder.BackColor;
            gf.Control_Leave(inControl);
        }
        private void LocateFileWorshipList()
        {
            int num = 0;
            for (int i = 0; i <= this.WorshipListItems.Items.Count - 1; i++)
            {
                if (gf.Left(this.WorshipListItems.Items[i].SubItems[1].Text, 1) == "P")
                {
                    num++;
                }
            }
            this.openFileDialog1.Filter = "Valid External Files (*.ppt,*.doc,*.txt,*.esi,*.esw)|*.ppt;*.doc;*.txt;*.esi;*.esw|Powerpoint Files (*.ppt)|*.ppt|Word Documents (*.doc)|*.doc|Text Files (*.txt)|*.txt|InfoScreens (*.esi)|*.esi|Worship Lists (*.esw)|*.esw";
            this.openFileDialog1.InitialDirectory = gf.DocumentsDir;
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName = this.openFileDialog1.FileName;
                this.AddExternalFileToWorshipList(fileName);
            }
        }
        private bool AddExternalFileToWorshipList(string FullPathFileName)
        {
            return this.AddExternalFileToWorshipList(FullPathFileName, this.GetWorshipListNextSelectedLoc());
        }
        private bool AddExternalFileToWorshipList(string FullPathFileName, int AddToLocation)
        {
            ListViewItem listViewItem = new ListViewItem();
            string text = gf.GetDisplayNameOnly(ref FullPathFileName, false);
            string musicTitle = text;
            string musicTitle2 = "";
            string text2 = "";
            int imageIndex = 0;
            string text3 = gf.Right(FullPathFileName, 4);
            bool preloadPowerpoint = false;
            if (AddToLocation < 0 || AddToLocation > this.WorshipListItems.Items.Count)
            {
                AddToLocation = this.WorshipListItems.Items.Count;
            }
            bool result;
            if (text3 == ".ppt")
            {
                text2 = "P";
                imageIndex = 11;
                if (gf.ShowRunning)
                {
                    preloadPowerpoint = true;
                }
            }
            else
            {
                if (text3 == ".txt")
                {
                    text2 = "T";
                    imageIndex = 13;
                }
                else
                {
                    if (text3 == ".doc")
                    {
                        text2 = "W";
                        imageIndex = 12;
                    }
                    else
                    {
                        if (text3 == ".esi")
                        {
                            text2 = "I";
                            imageIndex = 8;
                            string text4 = "";
                            gf.LoadIndividualData(ref gf.TempItem1, text2 + FullPathFileName, "", 1, ref text4);
                            musicTitle = gf.TempItem1.Title;
                            musicTitle2 = gf.TempItem1.Title2;
                        }
                        else
                        {
                            if (this.ValidMediaExt(text3))
                            {
                                text2 = "M";
                                imageIndex = 10;
                            }
                            else
                            {
                                if (text3 == ".esw")
                                {
                                    bool flag = this.InsertIndexFileItems(FullPathFileName, ref this.WorshipListItems, AddToLocation, ref gf.CurSessionNotes);
                                    if (flag)
                                    {
                                        this.SaveWorshipList(preloadPowerpoint);
                                    }
                                    result = flag;
                                    return result;
                                }
                            }
                        }
                    }
                }
            }
            if (text2 != "")
            {
                if (gf.MusicFound(musicTitle, musicTitle2))
                {
                    text += " <#>";
                }
                listViewItem = this.WorshipListItems.Items.Insert(AddToLocation, text);
                listViewItem.ImageIndex = imageIndex;
                listViewItem.SubItems.Add(text2 + FullPathFileName);
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                listViewItem.SubItems.Add("");
                AddToLocation++;
            }
            this.SaveWorshipList(preloadPowerpoint);
            result = true;
            return result;
        }
        private bool ValidMediaExt(string InExt)
        {
            bool result;
            for (int i = 0; i < gf.TotalMediaFileExt; i++)
            {
                if (InExt.ToLower() == gf.MediaFileExtension[i, 0].ToLower())
                {
                    result = true;
                    return result;
                }
            }
            result = false;
            return result;
        }
        private void ShowPreviewPPThumbs()
        {
            this.ShowPreviewPPThumbs(0);
        }
        private void ShowPreviewPPThumbs(int GotoSlide)
        {
            this.PreviewPPTotalImagesCount = gf.PreviewItem.TotalSlides;
            for (int i = 0; i < 1024; i++)
            {
                this.PreviewPPImagename[i] = "";
            }
            for (int i = 0; i < 1024; i++)
            {
                this.PreviewPPTIHoldersFileName[i] = "";
                this.PreviewPPSlideNumber[i] = -1;
            }
            for (int i = 0; i <= ((this.PreviewPPTotalImagesCount < 1024) ? (this.PreviewPPTotalImagesCount - 1) : 1023); i++)
            {
                this.PreviewPPImagename[i] = gf.PREPPFullPath + Convert.ToString(i + 1) + ".jpg";
            }
            this.SetPreviewPPThumbImages(GotoSlide);
        }
        private void SetPreviewPPThumbImages(int GotoSlide)
        {
            if (gf.PreviewItem.Type == "P")
            {
                if (GotoSlide < 0)
                {
                    GotoSlide = gf.PreviewItem.TotalSlides;
                }
                this.LoadThumbImages(this.flowLayoutPreviewPowerPoint, ref this.Powerpoint_PreviewCanvas, this.PreviewPPImagename, gf.PreviewItem.TotalSlides, this.flowLayoutPreviewPowerPoint.Width, gf.OUTPPFullPath, GotoSlide, this.toolTip1, true);
            }
        }
        private void MakePowerpointPreviewVisible(gf.SongSettings InItem, bool MakeVisible)
        {
            if (InItem.OutputStyleScreen)
            {
                this.flowLayoutOutputPowerPoint.Visible = MakeVisible;
            }
            else
            {
                this.flowLayoutPreviewPowerPoint.Visible = MakeVisible;
            }
        }
        private void ShowDualMonitorPP_Preview(ref gf.SongSettings InItem)
        {
            if (InItem.TotalSlides != 0)
            {
                try
                {
                    int num = (InItem.CurSlide < 0) ? InItem.TotalSlides : InItem.CurSlide;
                    InItem.Format.BackgroundPicture = (InItem.OutputStyleScreen ? gf.OUTPPFullPath : gf.PREPPFullPath) + num.ToString() + ".jpg";
                    InItem.UseDefaultFormat = false;
                    InItem.Format.BackgroundMode = gf.ImageMode.BestFit;
                    gf.DrawText(ref InItem, ref this.PreviewScreen, ref this.OutputScreen, InItem.LyricsAndNotationsList);
                    if (InItem.OutputStyleScreen)
                    {
                        gf.SetShowBackground(InItem, ref this.OutputScreen);
                    }
                    else
                    {
                        gf.SetShowBackground(InItem, ref this.PreviewScreen);
                    }
                    gf.DrawText(ref InItem, ref this.PreviewScreen, ref this.OutputScreen, InItem.LyricsAndNotationsList);
                }
                catch
                {
                }
            }
        }
        private void ShowOutputPPThumbs()
        {
            this.ShowOutputPPThumbs(0);
        }
        private void ShowOutputPPThumbs(int GotoSlide)
        {
            this.OutputPPTotalImagesCount = gf.OutputItem.TotalSlides;
            for (int i = 0; i < 1024; i++)
            {
                this.OutputPPImagename[i] = "";
            }
            for (int i = 0; i < 1024; i++)
            {
                this.OutputPPTIHoldersFileName[i] = "";
                this.OutputPPSlideNumber[i] = -1;
            }
            for (int i = 0; i <= ((this.OutputPPTotalImagesCount < 1024) ? (this.OutputPPTotalImagesCount - 1) : 1023); i++)
            {
                this.OutputPPImagename[i] = gf.OUTPPFullPath + Convert.ToString(i + 1) + ".jpg";
            }
            this.SetOutputPPThumbImages(GotoSlide);
        }
        private void SetOutputPPThumbImages()
        {
            this.SetOutputPPThumbImages(0);
        }
        private void SetOutputPPThumbImages(int GotoSlide)
        {
            if (gf.OutputItem.Type == "P")
            {
                if (GotoSlide < 0)
                {
                    GotoSlide = gf.OutputItem.TotalSlides;
                }
                this.LoadThumbImages(this.flowLayoutOutputPowerPoint, ref this.Powerpoint_OutputCanvas, this.OutputPPImagename, gf.OutputItem.TotalSlides, this.flowLayoutOutputPowerPoint.Width, gf.OUTPPFullPath, GotoSlide, this.toolTip1, true);
            }
        }
        private void MakePowerpointOutputVisible(gf.SongSettings InItem, bool MakeVisible)
        {
            if (InItem.OutputStyleScreen)
            {
                this.flowLayoutOutputPowerPoint.Visible = MakeVisible;
            }
            else
            {
                this.flowLayoutPreviewPowerPoint.Visible = MakeVisible;
            }
        }
        private void ShowDualMonitorPP_Output(ref gf.SongSettings InItem)
        {
            if (InItem.TotalSlides != 0)
            {
                try
                {
                    InItem.UseDefaultFormat = false;
                    gf.DrawText(ref InItem, ref this.OutputScreen, ref this.OutputScreen, InItem.LyricsAndNotationsList);
                    gf.SetShowBackground(InItem, ref this.OutputScreen);
                    gf.DrawText(ref InItem, ref this.OutputScreen, ref this.OutputScreen, InItem.LyricsAndNotationsList);
                }
                catch
                {
                }
            }
        }
        private string DragDropItemType(DragEventArgs e)
        {
            int num = e.Data.GetFormats().Length - 1;
            int i = 0;
            string result;
            while (i <= num)
            {
                if (e.Data.GetFormats()[i].Equals("System.Windows.Forms.ListView+SelectedListViewItemCollection"))
                {
                    if (this.DragListView == FrmMain.DragDropSource.WorshipList.ToString())
                    {
                        result = FrmMain.DragDropSource.WorshipList.ToString();
                    }
                    else
                    {
                        if (this.DragListView == FrmMain.DragDropSource.SongsList.ToString())
                        {
                            result = FrmMain.DragDropSource.SongsList.ToString();
                        }
                        else
                        {
                            if (this.DragListView == FrmMain.DragDropSource.InfoScreenList.ToString())
                            {
                                result = FrmMain.DragDropSource.InfoScreenList.ToString();
                            }
                            else
                            {
                                if (this.DragListView == FrmMain.DragDropSource.PowerpointList.ToString())
                                {
                                    result = FrmMain.DragDropSource.PowerpointList.ToString();
                                }
                                else
                                {
                                    if (this.DragListView == FrmMain.DragDropSource.MediaList.ToString())
                                    {
                                        result = FrmMain.DragDropSource.MediaList.ToString();
                                    }
                                    else
                                    {
                                        result = "";
                                    }
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (e.Data.GetFormats()[i].Equals(DataFormats.FileDrop))
                    {
                        result = DataFormats.FileDrop;
                    }
                    else
                    {
                        if (!e.Data.GetFormats()[i].Equals(FrmMain.DragDropSource.BiblePassage.ToString()))
                        {
                            i++;
                            continue;
                        }
                        result = FrmMain.DragDropSource.BiblePassage.ToString();
                    }
                }
                return result;
            }
            result = "";
            return result;
        }
        private void SongsList_ItemDrag(object sender, ItemDragEventArgs e)
        {
            this.DragListView = FrmMain.DragDropSource.SongsList.ToString();
            this.SongsList.DoDragDrop(this.SongsList.SelectedItems, DragDropEffects.Link);
        }
        private void InfoScreenList_ItemDrag(object sender, ItemDragEventArgs e)
        {
            this.DragListView = FrmMain.DragDropSource.InfoScreenList.ToString();
            this.InfoScreenList.DoDragDrop(this.SongsList.SelectedItems, DragDropEffects.Link);
        }
        private void PowerpointList_ItemDrag(object sender, ItemDragEventArgs e)
        {
            this.DragListView = FrmMain.DragDropSource.PowerpointList.ToString();
            this.PowerpointList.DoDragDrop(this.SongsList.SelectedItems, DragDropEffects.Link);
        }
        private void MediaList_ItemDrag(object sender, ItemDragEventArgs e)
        {
            this.DragListView = FrmMain.DragDropSource.MediaList.ToString();
            this.MediaList.DoDragDrop(this.SongsList.SelectedItems, DragDropEffects.Link);
        }
        private void WorshipList_ItemDrag(object sender, ItemDragEventArgs e)
        {
            this.DragListView = FrmMain.DragDropSource.WorshipList.ToString();
            this.WorshipListItems.DoDragDrop(this.WorshipListItems.SelectedItems, DragDropEffects.Link);
        }
        private void WorshipList_DragEnter(object sender, DragEventArgs e)
        {
            string a = this.DragDropItemType(e);
            if (a == FrmMain.DragDropSource.WorshipList.ToString())
            {
                e.Effect = DragDropEffects.Link;
            }
            else
            {
                if (a == FrmMain.DragDropSource.SongsList.ToString())
                {
                    e.Effect = DragDropEffects.Link;
                }
                else
                {
                    if (a == FrmMain.DragDropSource.InfoScreenList.ToString())
                    {
                        e.Effect = DragDropEffects.Link;
                    }
                    else
                    {
                        if (a == FrmMain.DragDropSource.PowerpointList.ToString())
                        {
                            e.Effect = DragDropEffects.Link;
                        }
                        else
                        {
                            if (a == FrmMain.DragDropSource.MediaList.ToString())
                            {
                                e.Effect = DragDropEffects.Link;
                            }
                            else
                            {
                                if (a == DataFormats.FileDrop)
                                {
                                    bool flag = true;
                                    string[] array = (string[])e.Data.GetData(DataFormats.FileDrop);
                                    if (!gf.SupportedImageFormat(array[0]))
                                    {
                                        for (int i = 0; i <= array.Length - 1; i++)
                                        {
                                            if ((gf.Right(array[i], 4).ToLower() != ".ppt" & gf.Right(array[i], 4).ToLower() != ".doc" & gf.Right(array[i], 4).ToLower() != ".txt") | (gf.Right(array[i], 4).ToLower() == ".ppt" & gf.ShowRunning))
                                            {
                                                flag = false;
                                            }
                                        }
                                    }
                                    e.Effect = (flag ? DragDropEffects.Link : DragDropEffects.None);
                                }
                                else
                                {
                                    if (a == FrmMain.DragDropSource.BiblePassage.ToString())
                                    {
                                        e.Effect = DragDropEffects.Link;
                                    }
                                    else
                                    {
                                        e.Effect = DragDropEffects.None;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        private void WorshipList_DragOver(object sender, DragEventArgs e)
        {
            Point point = default(Point);
            point = this.WorshipListItems.PointToClient(Cursor.Position);
            ListViewItem itemAt = this.WorshipListItems.GetItemAt(point.X, point.Y);
            if (itemAt != null)
            {
                this.WorshipListInsertAt = -1;
                if (point.Y >= itemAt.Bounds.Height + itemAt.Bounds.Y - 1)
                {
                    if (this.WorshipListItems.Items.Count > 0)
                    {
                        this.WorshipListItems.Items[this.WorshipListItems.Items.Count - 1].BackColor = this.SongFolder.BackColor;
                    }
                }
                else
                {
                    if (this.WorshipListItems.Items.Count > 0)
                    {
                        this.WorshipListInsertAt = itemAt.Index;
                        itemAt.BackColor = Color.Yellow;
                        if (this.WorshipListInsertAt > 0)
                        {
                            this.WorshipListItems.Items[this.WorshipListInsertAt - 1].BackColor = this.SongFolder.BackColor;
                            this.WorshipListItems.Items[this.WorshipListInsertAt - 1].EnsureVisible();
                        }
                        if (this.WorshipListInsertAt != this.WorshipListItems.Items.Count - 1)
                        {
                            this.WorshipListItems.Items[this.WorshipListInsertAt + 1].BackColor = this.SongFolder.BackColor;
                            this.WorshipListItems.Items[this.WorshipListInsertAt + 1].EnsureVisible();
                        }
                    }
                }
            }
        }
        private void WorshipList_DragDrop(object sender, DragEventArgs e)
        {
            int num = -1;
            int num2 = 0;
            string a = this.DragDropItemType(e);
            if (a == FrmMain.DragDropSource.WorshipList.ToString())
            {
                e.Effect = DragDropEffects.Link;
                num = ((this.WorshipListInsertAt >= 0) ? this.WorshipListInsertAt : this.WorshipListItems.Items.Count);
                num2 = this.WorshipListItems.SelectedItems.Count;
                int num3 = 0;
                if (num > 0)
                {
                    for (int i = 0; i < num; i++)
                    {
                        if (this.WorshipListItems.Items[i].Selected)
                        {
                            num3++;
                        }
                    }
                }
                int num4 = 0;
                foreach (ListViewItem listViewItem in this.WorshipListItems.SelectedItems)
                {
                    try
                    {
                        this.WorshipListItems.Items.Insert(num + num4, (ListViewItem)listViewItem.Clone());
                        num4++;
                    }
                    catch
                    {
                    }
                }
                this.RemoveWorshipListSong(false);
                num -= num3;
                if (num > 0)
                {
                    for (int i = num; i < num2 + num; i++)
                    {
                        this.WorshipListItems.Items[i].Selected = true;
                    }
                }
                this.SaveWorshipList();
            }
            else
            {
                if (a == FrmMain.DragDropSource.SongsList.ToString())
                {
                    e.Effect = DragDropEffects.Copy;
                    num = this.WorshipListInsertAt;
                    num2 = this.SongsList.SelectedItems.Count;
                    this.AddFromSongsList(this.WorshipListInsertAt);
                }
                else
                {
                    if (a == FrmMain.DragDropSource.InfoScreenList.ToString())
                    {
                        e.Effect = DragDropEffects.Copy;
                        num = this.WorshipListInsertAt;
                        num2 = this.SongsList.SelectedItems.Count;
                        this.AddFromInfoScreensList(this.WorshipListInsertAt);
                    }
                    else
                    {
                        if (a == FrmMain.DragDropSource.PowerpointList.ToString())
                        {
                            e.Effect = DragDropEffects.Copy;
                            num = this.WorshipListInsertAt;
                            num2 = this.SongsList.SelectedItems.Count;
                            this.AddFromPowerpointList(this.WorshipListInsertAt);
                        }
                        else
                        {
                            if (a == FrmMain.DragDropSource.MediaList.ToString())
                            {
                                e.Effect = DragDropEffects.Copy;
                                num = this.WorshipListInsertAt;
                                num2 = this.SongsList.SelectedItems.Count;
                                this.AddFromMediaFilesList(this.WorshipListInsertAt);
                            }
                            else
                            {
                                if (a == DataFormats.FileDrop)
                                {
                                    string[] array = (string[])e.Data.GetData(DataFormats.FileDrop);
                                    num = this.WorshipListInsertAt;
                                    num2 = array.Length;
                                    if (gf.SupportedImageFormat(array[0]))
                                    {
                                        if (this.WorshipListInsertAt < 0)
                                        {
                                            this.WorshipList_UnselectAll();
                                        }
                                        else
                                        {
                                            this.WorshipListItems.Items[this.WorshipListInsertAt].Selected = true;
                                            this.WorshipListIndexChanged();
                                        }
                                        this.ApplyBackground(array[0]);
                                        num2 = 1;
                                    }
                                    else
                                    {
                                        int num4 = 0;
                                        for (int i = 0; i <= array.Length - 1; i++)
                                        {
                                            this.AddExternalFileToWorshipList(array[i], this.WorshipListInsertAt + num4);
                                            num4++;
                                        }
                                        if (array.Length > 0)
                                        {
                                            this.SelectWorshipListItem(this.WorshipListInsertAt, num4);
                                        }
                                    }
                                }
                                else
                                {
                                    if (a == FrmMain.DragDropSource.BiblePassage.ToString())
                                    {
                                        this.AddFromHolyBible(this.WorshipListInsertAt);
                                    }
                                }
                            }
                        }
                    }
                }
            }
            this.ResetListViewBackgroundColour(this.WorshipListItems);
            this.WorshipListIndexChanged();
            this.UpdateOutputCurItemNo();
        }
        private void WorshipList_DragLeave(object sender, EventArgs e)
        {
            this.ResetListViewBackgroundColour(this.WorshipListItems);
            this.WorshipListInsertAt = -1;
        }
        private void PraiseBookItems_DragEnter(object sender, DragEventArgs e)
        {
            string a = this.DragDropItemType(e);
            if (a == "SongsList")
            {
                e.Effect = DragDropEffects.Link;
            }
            else
            {
                e.Effect = DragDropEffects.None;
            }
        }
        private void PraiseBookItems_DragDrop(object sender, DragEventArgs e)
        {
            string a = this.DragDropItemType(e);
            if (a == "SongsList")
            {
                e.Effect = DragDropEffects.Link;
                this.AddToPraiseBookList();
            }
        }
        private void cbGoLive_Click(object sender, EventArgs e)
        {
            this.GoLive(this.cbGoLive.Checked);
        }
        private void btnToLive_Click(object sender, EventArgs e)
        {
            this.PreviewItemToLive();
        }
        private void Menu_PreviewGoLiveNext_Click(object sender, EventArgs e)
        {
            if (gf.PreviewItem.ItemID != "")
            {
                this.CopyPreviewToOutput();
            }
            this.ManualMoveToItem(gf.PreviewItem, gf.KeyDirection.NextOne);
            this.FocusOutputArea();
            this.GoLive(true);
        }
        private void PreviewItemToLive()
        {
            if (gf.ShowRunning)
            {
                if (gf.PreviewItem.ItemID != "")
                {
                    this.CopyPreviewToOutput();
                }
            }
            else
            {
                if (gf.PreviewItem.ItemID != "")
                {
                    this.CopyPreviewToOutput();
                    this.GoLive(true);
                }
            }
        }
        private void GoLive(bool InStatus)
        {
            this.cbGoLive.Checked = InStatus;
            this.Menu_StartShow.Checked = InStatus;
            this.Menu_StartShow.ImageIndex = (this.Menu_StartShow.Checked ? 8 : 9);
            if (InStatus)
            {
                if (!gf.ShowRunning)
                {
                    this.Menu_StartShow.Checked = InStatus;
                    this.Start_Presentation();
                }
            }
            else
            {
                this.cbGoLive.ForeColor = this.DefaultButtonForeColour;
                if (gf.ShowRunning)
                {
                    gf.ShowRunning = false;
                    this.LiveShow.StopShow();
                    this.UpdateWorshipShowIcons();
                }
            }
            if (gf.DualMonitorMode)
            {
                this.FocusOutputArea();
                base.Focus();
            }
        }
        private void Start_Presentation()
        {
            if (gf.OutputItem.ItemID == "")
            {
                gf.StartPresAt = 1;
                this.LoadWorshipListItemToOutput(gf.StartPresAt, 0);
                if (gf.OutputItem.ItemID == "")
                {
                    this.GoLive(false);
                    MessageBox.Show("Can't start the Show because the Worship List is empty!");
                    return;
                }
            }
            if (this.ValidateWorshipListItems(true) < 0)
            {
                gf.ShowRunning = true;
                gf.ResetShowRunningSettings();
                this.UpdateWorshipShowIcons();
                gf.SaveShowOptions = false;
                gf.OutputItem.GapItemOnDisplay = false;
                gf.SizeLaunchScreen();
                if (gf.DualMonitorMode)
                {
                    gf.LaunchShowUpdateDone = false;
                    FormWindowState windowState = base.WindowState;
                    base.WindowState = windowState;
                    gf.PreLoadPowerpointFiles(ref gf.LivePP, ref gf.WorshipSongs);
                    try
                    {
                        this.LiveShow.Show();
                    }
                    catch
                    {
                        try
                        {
                            this.LiveShow = new FrmLaunchShow();
                            this.LiveShow.OnMessage += new FrmLaunchShow.Message(this.LiveShow_OnMessage);
                            this.LiveShow.Show();
                        }
                        catch
                        {
                        }
                    }
                    this.FocusOutputArea();
                }
                else
                {
                    this.MinAllWindows();
                    this.TimerReMax.Enabled = true;
                    FormWindowState windowState = base.WindowState;
                    base.WindowState = FormWindowState.Minimized;
                    gf.PreLoadPowerpointFiles(ref gf.LivePP, ref gf.WorshipSongs);
                    try
                    {
                        this.LiveShow.ShowDialog();
                    }
                    catch
                    {
                        try
                        {
                            this.LiveShow = new FrmLaunchShow();
                            this.LiveShow.OnMessage += new FrmLaunchShow.Message(this.LiveShow_OnMessage);
                            this.LiveShow.ShowDialog();
                        }
                        catch
                        {
                        }
                    }
                    gf.ParentalAlertLive = false;
                    gf.MessageAlertLive = false;
                    if (gf.OutputItem.CurItemNo == 0)
                    {
                        this.CopyPreviewToOutput();
                    }
                    else
                    {
                        if (gf.LiveItem.Type == "G")
                        {
                            this.LoadItem(ref gf.OutputItem, "G1", "", 0);
                        }
                        else
                        {
                            this.LoadWorshipListItemToOutput(gf.StartPresAt, gf.OutputItem.CurSlide, false);
                        }
                    }
                    base.WindowState = windowState;
                    this.UpdateWorshipShowIcons();
                    this.Menu_StartShow.Checked = false;
                    this.cbGoLive.Checked = false;
                    this.cbGoLive.ForeColor = this.DefaultButtonForeColour;
                    this.SetAutoRotateButtons();
                    this.LiveBlack(gf.ShowLiveBlack);
                    this.LiveClear(gf.ShowLiveClear);
                    this.LiveCam(gf.ShowLiveCam);
                    if (gf.SaveShowOptions)
                    {
                        this.SaveWorshipList();
                    }
                }
            }
            else
            {
                this.GoLive(false);
            }
        }
        private void OldStart_Presentation()
        {
            if (!gf.ShowRunning)
            {
                if (gf.OutputItem.ItemID == "")
                {
                    gf.StartPresAt = 1;
                    this.LoadWorshipListItemToOutput(gf.StartPresAt, 0);
                    if (gf.OutputItem.ItemID == "")
                    {
                        this.GoLive(false);
                        MessageBox.Show("Can't start the Show because the Worship List is empty!");
                        return;
                    }
                }
                Cursor.Current = Cursors.WaitCursor;
                if (this.ValidateWorshipListItems(true) < 0)
                {
                    gf.ShowRunning = true;
                    gf.ResetShowRunningSettings();
                    this.UpdateWorshipShowIcons();
                    gf.SaveShowOptions = false;
                    gf.SizeLaunchScreen();
                    try
                    {
                        this.LiveShow.Close();
                        this.LiveShow = null;
                    }
                    catch
                    {
                    }
                    try
                    {
                        this.LiveShow = new FrmLaunchShow();
                        this.LiveShow.OnMessage += new FrmLaunchShow.Message(this.LiveShow_OnMessage);
                    }
                    catch
                    {
                    }
                    if (gf.DualMonitorMode)
                    {
                        gf.LaunchShowUpdateDone = false;
                        FormWindowState windowState = base.WindowState;
                        base.WindowState = windowState;
                        gf.PreLoadPowerpointFiles(ref gf.LivePP, ref gf.WorshipSongs);
                        try
                        {
                            this.LiveShow.Show();
                        }
                        catch
                        {
                        }
                        this.FocusOutputArea();
                    }
                    else
                    {
                        this.MinAllWindows();
                        this.TimerReMax.Enabled = true;
                        FormWindowState windowState = base.WindowState;
                        base.WindowState = FormWindowState.Minimized;
                        Cursor.Current = Cursors.Default;
                        Cursor.Hide();
                        gf.PreLoadPowerpointFiles(ref gf.LivePP, ref gf.WorshipSongs);
                        try
                        {
                            this.LiveShow.ShowDialog();
                        }
                        catch
                        {
                        }
                        Cursor.Current = Cursors.Default;
                        Cursor.Hide();
                        Cursor.Show();
                        gf.ParentalAlertLive = false;
                        gf.MessageAlertLive = false;
                        if (gf.OutputItem.CurItemNo == 0)
                        {
                            this.CopyPreviewToOutput();
                        }
                        else
                        {
                            if (gf.LiveItem.Type == "G")
                            {
                                this.LoadItem(ref gf.OutputItem, "G1");
                            }
                            else
                            {
                                this.LoadWorshipListItemToOutput(gf.StartPresAt, gf.OutputItem.CurSlide, false);
                            }
                        }
                        base.WindowState = windowState;
                        this.UpdateWorshipShowIcons();
                        this.Menu_StartShow.Checked = false;
                        this.cbGoLive.Checked = false;
                        this.cbGoLive.ForeColor = this.DefaultButtonForeColour;
                        this.SetAutoRotateButtons();
                        this.LiveBlack(gf.ShowLiveBlack);
                        this.LiveClear(gf.ShowLiveClear);
                        this.LiveCam(gf.ShowLiveCam);
                        if (gf.SaveShowOptions)
                        {
                            this.SaveWorshipList();
                        }
                    }
                }
                else
                {
                    this.GoLive(false);
                }
            }
        }
        private void MinAllWindows()
        {
            Type typeFromProgID = Type.GetTypeFromProgID("Shell.Application");
            object target = Activator.CreateInstance(typeFromProgID);
            typeFromProgID.InvokeMember("MinimizeAll", BindingFlags.InvokeMethod, null, target, null);
        }
        private void LiveBlack(bool InStatus)
        {
            gf.ShowLiveBlack = InStatus;
            this.cbOutputBlack.Checked = gf.ShowLiveBlack;
            this.Menu_BlackScreen.Checked = gf.ShowLiveBlack;
            this.PostitionBlackClearGapLabels();
            this.RedrawOutputItemText();
            this.cbOutputBlack.ImageIndex = (this.cbOutputBlack.Checked ? 2 : 3);
            if (gf.ShowRunning)
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_LiveBlackClearChanged);
            }
            this.FocusOutputArea();
        }
        private void LiveClear(bool InStatus)
        {
            gf.ShowLiveClear = InStatus;
            this.cbOutputClear.Checked = gf.ShowLiveClear;
            this.Menu_ClearScreen.Checked = gf.ShowLiveClear;
            this.PostitionBlackClearGapLabels();
            this.RedrawOutputItemText();
            this.cbOutputClear.ImageIndex = (this.cbOutputClear.Checked ? 4 : 5);
            if (gf.ShowRunning)
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_LiveBlackClearChanged);
            }
            this.FocusOutputArea();
        }
        private void PostitionBlackClearGapLabels()
        {
            if (gf.ShowLiveBlack)
            {
                this.labelBlackScreen.Left = 0;
            }
            this.labelBlackScreen.Visible = gf.ShowLiveBlack;
            if (gf.ShowLiveClear)
            {
                this.labelHideText.Left = (gf.ShowLiveBlack ? this.labelBlackScreen.Width : 0);
            }
            this.labelHideText.Visible = gf.ShowLiveClear;
            if (gf.OutputItem.Type == "G")
            {
                this.labelGapItem.Left = (gf.ShowLiveBlack ? this.labelBlackScreen.Width : 0) + (gf.ShowLiveClear ? this.labelHideText.Width : 0);
            }
            this.labelGapItem.Visible = (gf.OutputItem.Type == "G");
            this.ResizeOutputBottomPanel();
        }
        private void LiveCam(bool InStatus)
        {
            gf.ShowLiveCam = InStatus;
            this.cbOutputCam.Checked = gf.ShowLiveCam;
            this.Menu_LiveCam.Checked = gf.ShowLiveCam;
            this.cbOutputCam.ImageIndex = (this.cbOutputCam.Checked ? 6 : 7);
            if (gf.ShowRunning)
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_LiveCamStartStop);
            }
            this.FocusOutputArea();
        }
        private void RedrawOutputItemText()
        {
            this.ShowSlide(ref gf.OutputItem, gf.GapItemUseFade ? ImageTransitionControl.TransitionAction.AsFade : ImageTransitionControl.TransitionAction.None);
        }
        private int ValidateWorshipListItems(bool ShowErrorMessage)
        {
            bool flag = false;
            int num = 0;
            Recordset tableRecordSet = gf.GetTableRecordSet(gf.ConnectStringMainDB, "SONG");
            tableRecordSet.Index = "PrimaryKey";
            gf.AdHocItemPresent = (gf.OutputItem.Source != gf.ItemSource.WorshipList);
            int result;
            for (int i = 0; i <= this.WorshipListItems.Items.Count - (gf.AdHocItemPresent ? 0 : 1); i++)
            {
                string text;
                string text2;
                string inString;
                int num2;
                if (gf.AdHocItemPresent & i == this.WorshipListItems.Items.Count)
                {
                    text = gf.OutputItem.InMainItemText;
                    text2 = gf.OutputItem.InSubItemItem1Text;
                    inString = gf.OutputItem.Format.FormatString;
                    num2 = 0;
                }
                else
                {
                    text = this.WorshipListItems.Items[i].Text;
                    text2 = this.WorshipListItems.Items[i].SubItems[1].Text;
                    inString = this.WorshipListItems.Items[i].SubItems[2].Text;
                    num2 = i + 1;
                }
                string a = gf.Left(text2, 1);
                string text3 = gf.Right(text2, text2.Length - 1);
                if (a == "D")
                {
                    bool flag2 = false;
                    int num3 = 0;
                    try
                    {
                        tableRecordSet.Seek("=", text3, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def);
                        if (!tableRecordSet.NoMatch)
                        {
                            gf.WorshipSongs[num2, 0] = text2;
                            gf.WorshipSongs[num2, 1] = "D";
                            gf.WorshipSongs[num2, 2] = gf.RemoveMusicSym(text);
                            gf.WorshipSongs[num2, 3] = " ";
                            gf.WorshipSongs[num2, 4] = gf.Trim(inString);
                            num3 = gf.ObjToInt(tableRecordSet.Fields["FolderNo"].Value);
                            flag2 = true;
                        }
                    }
                    catch
                    {
                    }
                    if (!flag2)
                    {
                        if (ShowErrorMessage)
                        {
                            MessageBox.Show("Sorry - Can't find the song '" + gf.RemoveMusicSym(text) + "' in the Database!");
                        }
                        result = i;
                        return result;
                    }
                    if (num3 == 0)
                    {
                        if (ShowErrorMessage)
                        {
                            MessageBox.Show("Sorry - Can't show the Database song '" + gf.RemoveMusicSym(text) + "' because it has been deleted!");
                        }
                        result = i;
                        return result;
                    }
                }
                else
                {
                    if (a == "P")
                    {
                        if (!flag)
                        {
                            if (!gf.PowerpointPresent())
                            {
                                if (ShowErrorMessage)
                                {
                                    MessageBox.Show("Error - You have a Powerpoint item but there is no Microsoft Powerpoint Software on your computer");
                                }
                                result = i;
                                return result;
                            }
                            flag = true;
                        }
                        string text4 = text3;
                        if (!File.Exists(text4))
                        {
                            if (ShowErrorMessage)
                            {
                                MessageBox.Show("Sorry - Can't find the Powerpoint File '" + gf.RemoveMusicSym(text) + "'");
                            }
                            result = i;
                            return result;
                        }
                        num++;
                        gf.WorshipSongs[num2, 0] = "P" + text4;
                        gf.WorshipSongs[num2, 1] = "P";
                        gf.WorshipSongs[num2, 2] = gf.RemoveMusicSym(text);
                        gf.WorshipSongs[num2, 3] = " ";
                        gf.WorshipSongs[num2, 4] = "";
                    }
                    else
                    {
                        if (a == "B")
                        {
                            gf.WorshipSongs[num2, 0] = text2;
                            gf.WorshipSongs[num2, 1] = "B";
                            gf.WorshipSongs[num2, 2] = text;
                            gf.WorshipSongs[num2, 3] = " ";
                            gf.WorshipSongs[num2, 4] = gf.Trim(inString);
                        }
                        else
                        {
                            if (a == "T")
                            {
                                gf.WorshipSongs[num2, 0] = text2;
                                gf.WorshipSongs[num2, 1] = "T";
                                gf.WorshipSongs[num2, 2] = text;
                                gf.WorshipSongs[num2, 3] = " ";
                                gf.WorshipSongs[num2, 4] = gf.Trim(inString);
                            }
                            else
                            {
                                if (a == "I")
                                {
                                    gf.WorshipSongs[num2, 0] = text2;
                                    gf.WorshipSongs[num2, 1] = "I";
                                    gf.WorshipSongs[num2, 2] = text;
                                    gf.WorshipSongs[num2, 3] = " ";
                                    gf.WorshipSongs[num2, 4] = gf.Trim(inString);
                                }
                                else
                                {
                                    if (a == "W")
                                    {
                                        gf.WorshipSongs[num2, 0] = text2;
                                        gf.WorshipSongs[num2, 1] = "W";
                                        gf.WorshipSongs[num2, 2] = text;
                                        gf.WorshipSongs[num2, 3] = " ";
                                        gf.WorshipSongs[num2, 4] = gf.Trim(inString);
                                    }
                                    else
                                    {
                                        if (a == "M")
                                        {
                                            gf.WorshipSongs[num2, 0] = text2;
                                            gf.WorshipSongs[num2, 1] = "M";
                                            gf.WorshipSongs[num2, 2] = text;
                                            gf.WorshipSongs[num2, 3] = " ";
                                            gf.WorshipSongs[num2, 4] = gf.Trim(inString);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            gf.TotalWorshipListItems = this.WorshipListItems.Items.Count;
            if (num > gf.PP_MaxFiles)
            {
                MessageBox.Show(string.Concat(new string[]
				{
					"Error - There are ",
					num.ToString(),
					" Powerpoint files on the Worship List but you are only permitted to have ",
					gf.PP_MaxFiles.ToString(),
					"."
				}));
                result = 1;
                return result;
            }
            result = -1;
            return result;
        }
        private void Menu_WorshipLists_Click(object sender, EventArgs e)
        {
            this.WorshipListsManage();
        }
        private void WorshipListsManage()
        {
            gf.WorshipListsChanged = false;
            gf.PraiseBooksListChanged = false;
            gf.Def_FormatString = this.LoadWorshipList(2, gf.WorshipTemplatesDir + "Default.est");
            if (gf.Def_FormatString == "")
            {
                gf.Def_FormatString = " ";
            }
            FrmManageItemLists frmManageItemLists = new FrmManageItemLists();
            frmManageItemLists.ShowDialog();
            if (gf.PraiseBooksListChanged)
            {
                string curPraiseBook = gf.CurPraiseBook;
                this.PopulatePraiseBooksList();
                gf.CurPraiseBook = curPraiseBook;
                gf.PraiseBooksListChanged = false;
            }
            if (gf.CurSession != this.SessionList.Text)
            {
                this.WriteCurSession();
                this.PopulateWorshipList();
                this.LoadWorshipList(0);
                this.SessionList.Text = gf.CurSession;
            }
            else
            {
                if (gf.WorshipListsChanged)
                {
                    this.PopulateWorshipList();
                }
            }
        }
        private void Menu_PraiseBooks_Click(object sender, EventArgs e)
        {
            this.PraiseBooksManage();
        }
        private void PraiseBooksManage()
        {
            gf.PraiseBooksListChanged = false;
            gf.WorshipListsChanged = false;
            gf.CurPraiseBook = this.PraiseBook.Text;
            gf.Def_FormatString = "";
            FrmManageItemLists frmManageItemLists = new FrmManageItemLists();
            frmManageItemLists.ShowDialog();
            if (gf.WorshipListsChanged)
            {
                string curSession = gf.CurSession;
                this.PopulateWorshipList();
                gf.CurSession = curSession;
                gf.WorshipListsChanged = false;
            }
            if (gf.CurPraiseBook != this.PraiseBook.Text)
            {
                this.WriteCurPraiseBook();
                this.PopulatePraiseBooksList();
                this.LoadPraiseBook(0);
                this.PraiseBook.Text = gf.CurPraiseBook;
            }
            else
            {
                if (gf.PraiseBooksListChanged)
                {
                    this.PopulatePraiseBooksList();
                }
            }
        }
        private void Menu_ListingOfSelectedFolder_Click(object sender, EventArgs e)
        {
            this.ListingOfSelectedFolder_Clicked();
        }
        private void ListingOfSelectedFolder_Clicked()
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFolders"))
            {
                if (this.SongsList.Items.Count > 0)
                {
                    this.GenerateIndexReport();
                }
                else
                {
                    MessageBox.Show("Please select the Song Folder for which you want an index of the database items.");
                }
            }
            else
            {
                MessageBox.Show("Index of Selected Folder are for Database Items only!");
            }
        }
        private void Menu_EasiSlidesFolder_Click(object sender, EventArgs e)
        {
            gf.RunProcess(gf.RootEasiSlidesDir);
        }
        private void Menu_StatusBar_Click(object sender, EventArgs e)
        {
            this.Menu_StatusBar.Checked = !this.Menu_StatusBar.Checked;
            this.statusStripMain.Visible = this.Menu_StatusBar.Checked;
        }
        private void Menu_PreviewNotations_Click(object sender, EventArgs e)
        {
            this.PreviewNotations(this.Menu_PreviewNotations.Checked);
        }
        private void PreviewNotations(bool ShowNotations)
        {
            gf.PreviewArea_ShowNotations = ShowNotations;
            this.Menu_PreviewNotations.Checked = ShowNotations;
            this.ApplyPreviewArea_Setup(2);
        }
        private void Menu_Refresh_Click(object sender, EventArgs e)
        {
            this.RefreshItems();
        }
        private void RefreshItems()
        {
            this.InitFormLoad = true;
            this.BuildFolderList();
            this.PopulateWorshipList();
            this.BuildPicturesFolderList();
            this.BuildInfoScreenFolderList();
            this.BuildMediaFolderList();
            this.BuildPowerpointFolderList();
            this.ShowPicturesFolderThumbs();
            this.PopulatePraiseBooksList();
            this.InitFormLoad = false;
            this.SongFolder_Change();
        }
        private void Menu_StartShow_Click(object sender, EventArgs e)
        {
            this.GoLive(!gf.ShowRunning);
        }
        private void Menu_BlackScreen_Click(object sender, EventArgs e)
        {
            this.LiveBlack(!gf.ShowLiveBlack);
        }
        private void Menu_ClearScreen_Click(object sender, EventArgs e)
        {
            this.LiveClear(!gf.ShowLiveClear);
        }
        private void Menu_LiveCam_Click(object sender, EventArgs e)
        {
            this.LiveCam(!gf.ShowLiveCam);
        }
        private void Menu_RestartCurrentItem_Click(object sender, EventArgs e)
        {
            this.SetRotateState(false);
            gf.RestartItemActioned = false;
            this.MoveToItem(gf.OutputItem, gf.KeyDirection.Refresh, 1, true);
        }
        private void Menu_SwitchChinese_Click(object sender, EventArgs e)
        {
            this.OutputChineseSwitch();
        }
        private void OutputChineseSwitch()
        {
            if (!(gf.OutputItem.CompleteLyrics == ""))
            {
                int num = gf.SwitchChinese(ref gf.OutputItem.CompleteLyrics);
                gf.SwitchChineseLyricsNotationListView(ref gf.OutputItem, num);
                this.DisplayLyrics(gf.OutputItem, gf.OutputItem.CurSlide, true, 2, ImageTransitionControl.TransitionAction.None);
                if (gf.ShowRunning & num >= 0)
                {
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_ChineseChanged);
                }
            }
        }
        private void cbOutputBlack_Click(object sender, EventArgs e)
        {
            this.LiveBlack(this.cbOutputBlack.Checked);
        }
        private void cbOutputClear_Click(object sender, EventArgs e)
        {
            this.LiveClear(this.cbOutputClear.Checked);
        }
        private void cbOutputCam_Click(object sender, EventArgs e)
        {
            this.LiveCam(this.cbOutputCam.Checked);
        }
        private void Menu_SelectAll_Click(object sender, EventArgs e)
        {
            this.SongsList_SelectAll();
        }
        private void SongsList_SelectAll()
        {
            if (this.SongsList.Items.Count > 0)
            {
                Cursor.Current = Cursors.WaitCursor;
                for (int i = 0; i <= this.SongsList.Items.Count - 1; i++)
                {
                    this.SongsList.Items[i].Selected = true;
                }
                this.SongsList.Focus();
                Cursor.Current = Cursors.Default;
            }
        }
        private void Menu_Import_Click(object sender, EventArgs e)
        {
            FrmImport frmImport = new FrmImport();
            frmImport.ShowDialog();
        }
        private void Menu_ImportFolder_Click(object sender, EventArgs e)
        {
            FrmImportFolder frmImportFolder = new FrmImportFolder();
            frmImportFolder.ShowDialog();
        }
        private void Menu_Export_Click(object sender, EventArgs e)
        {
            FrmExport frmExport = new FrmExport();
            frmExport.ShowDialog();
        }
        private void Menu_Find_Click(object sender, EventArgs e)
        {
            this.Find_Items();
        }
        private void Menu_ReArrangeSongFolders_Click(object sender, EventArgs e)
        {
            FrmRearrangeFolderPositions frmRearrangeFolderPositions = new FrmRearrangeFolderPositions();
            if (frmRearrangeFolderPositions.ShowDialog() == DialogResult.OK)
            {
                this.BuildFolderList();
                this.SetJumpToolTips();
            }
        }
        private void Menu_Options_Click(object sender, EventArgs e)
        {
            this.ViewOptions();
        }
        private void Menu_AlertWindow_Click(object sender, EventArgs e)
        {
            this.ShowAlertForm();
        }
        private void Menu_StopAlert_Click(object sender, EventArgs e)
        {
            this.ShowStopAlert();
        }
        private void ShowStopAlert()
        {
            gf.ParentalAlertLive = false;
            gf.MessageAlertLive = false;
        }
        private void Menu_AddSong_Click(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFolders"))
            {
                this.AddNew();
            }
            else
            {
                if (this.tabControlSource.SelectedTab.Name == "tabFiles")
                {
                    this.EF_New_Clicked();
                }
            }
        }
        private void Menu_EditSong_Click(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFolders"))
            {
                this.Edit_SongsListSong();
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
                {
                    this.EF_Edit_Clicked();
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                    {
                        this.PP_Edit_Clicked();
                    }
                }
            }
        }
        private void Menu_CopySong_Click(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFolders"))
            {
                this.Copy_Song();
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
                {
                    this.EF_Copy_Clicked();
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                    {
                        this.PP_Copy_Clicked();
                    }
                }
            }
        }
        private void Menu_MoveSong_Click(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFolders"))
            {
                this.Move_Song();
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
                {
                    this.EF_Move_Clicked();
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                    {
                        this.PP_Move_Clicked();
                    }
                }
            }
        }
        private void Menu_DeleteSong_Click(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFolders"))
            {
                this.RemoveSongsListSong();
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
                {
                    this.EF_Delete_Clicked();
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                    {
                        this.PP_Delete_Clicked();
                    }
                }
            }
        }
        private void Copy_Song()
        {
            gf.SelectedItemsCount = this.SongsList.SelectedItems.Count;
            if (this.SongsList.SelectedItems.Count != 0 && gf.SelectedItemsCount != 0)
            {
                FrmCopy frmCopy = new FrmCopy();
                if (frmCopy.ShowDialog() == DialogResult.OK)
                {
                    int[] array = new int[30000];
                    array[0] = 0;
                    string[] array2 = new string[30000];
                    array2[0] = "0";
                    string[] inHeaderData = new string[255];
                    int num = 0;
                    string text = "";
                    if (gf.CopyToFolder < 0)
                    {
                        num = -gf.CopyToFolder - 1;
                        text = gf.InfoScreenGroups[num, 1];
                    }
                    for (int i = 0; i <= this.SongsList.Items.Count - 1; i++)
                    {
                        if (this.SongsList.Items[i].Selected)
                        {
                            try
                            {
                                string text2 = this.SongsList.Items[i].SubItems[1].Text;
                                string str = gf.Right(text2, text2.Length - 1);
                                string fullSearchString = "select * from SONG where songid=" + str;
                                Recordset recordSet = gf.GetRecordSet(gf.ConnectStringMainDB, fullSearchString);
                                if (recordSet != null && !recordSet.EOF)
                                {
                                    if (gf.CopyToFolder > 0)
                                    {
                                        int num2 = gf.InsertItemIntoDatabase(gf.ConnectStringMainDB, recordSet.Fields["Title_1"].Value, recordSet.Fields["Title_2"].Value, recordSet.Fields["song_number"].Value, gf.CopyToFolder, recordSet.Fields["Lyrics"].Value, recordSet.Fields["Sequence"].Value, recordSet.Fields["writer"].Value, recordSet.Fields["copyright"].Value, recordSet.Fields["capo"].Value, recordSet.Fields["Timing"].Value, recordSet.Fields["Key"].Value, recordSet.Fields["msc"].Value, recordSet.Fields["CATEGORY"].Value, recordSet.Fields["LICENCE_ADMIN1"].Value, recordSet.Fields["LICENCE_ADMIN2"].Value, recordSet.Fields["BOOK_REFERENCE"].Value, recordSet.Fields["USER_REFERENCE"].Value, recordSet.Fields["SETTINGS"].Value, recordSet.Fields["FORMATDATA"].Value);
                                        if (num2 > 0)
                                        {
                                            array[0]++;
                                            array[array[0]] = num2;
                                        }
                                    }
                                    else
                                    {
                                        gf.TempItem1.Title = gf.ObjToString(recordSet.Fields["Title_1"].Value);
                                        gf.TempItem1.FolderNo = gf.ObjToInt(recordSet.Fields["FolderNo"].Value);
                                        gf.TempItem1.Title2 = gf.ObjToString(recordSet.Fields["Title_2"].Value);
                                        gf.TempItem1.SongNumber = gf.ObjToInt(recordSet.Fields["song_number"].Value);
                                        gf.TempItem1.CompleteLyrics = gf.ObjToString(recordSet.Fields["Lyrics"].Value);
                                        gf.TempItem1.Notations = gf.ObjToString(recordSet.Fields["msc"].Value);
                                        gf.TempItem1.SongSequence = gf.ObjToString(recordSet.Fields["Sequence"].Value);
                                        gf.TempItem1.Writer = gf.ObjToString(recordSet.Fields["writer"].Value);
                                        gf.TempItem1.Copyright = gf.ObjToString(recordSet.Fields["copyright"].Value);
                                        gf.TempItem1.Category = "";
                                        gf.TempItem1.Timing = gf.ObjToString(recordSet.Fields["Timing"].Value);
                                        gf.TempItem1.MusicKey = gf.ObjToString(recordSet.Fields["Key"].Value);
                                        gf.TempItem1.Capo = gf.ObjToInt(recordSet.Fields["capo"].Value);
                                        gf.TempItem1.Show_LicAdminInfo1 = gf.ObjToString(recordSet.Fields["LICENCE_ADMIN1"].Value);
                                        gf.TempItem1.Show_LicAdminInfo2 = gf.ObjToString(recordSet.Fields["LICENCE_ADMIN2"].Value);
                                        gf.TempItem1.Book_Reference = gf.ObjToString(recordSet.Fields["BOOK_REFERENCE"].Value);
                                        gf.TempItem1.User_Reference = gf.ObjToString(recordSet.Fields["USER_REFERENCE"].Value);
                                        gf.TempItem1.RotateString = "";
                                        gf.TempItem1.Settings = gf.ObjToString(recordSet.Fields["SETTINGS"].Value);
                                        string text3 = text + gf.TempItem1.Title + ".esi";
                                        int num3 = 0;
                                        while (File.Exists(text3))
                                        {
                                            num3++;
                                            text3 = string.Concat(new string[]
											{
												text,
												gf.TempItem1.Title,
												" - Copy (",
												num3.ToString(),
												").esi"
											});
                                        }
                                        if (gf.SaveXMLInfoScreen(gf.TempItem1, text3, inHeaderData, false, false))
                                        {
                                            array2[0] = Convert.ToString(gf.StringToInt(array2[0]) + 1);
                                            array2[gf.StringToInt(array2[0])] = gf.GetDisplayNameOnly(ref text3, false);
                                        }
                                    }
                                }
                            }
                            catch
                            {
                            }
                        }
                    }
                    if (gf.CopyToFolder > 0)
                    {
                        this.HighlightCopyMoveItems(gf.CopyToFolder, ref array);
                    }
                    else
                    {
                        this.HighlightCopyMoveExternalItems(this.InfoScreenList, num, array2, "I");
                    }
                }
            }
        }
        private void Move_Song()
        {
            gf.SelectedItemsCount = this.SongsList.SelectedItems.Count;
            if (gf.SelectedItemsCount != 0)
            {
                FrmMove frmMove = new FrmMove();
                if (frmMove.ShowDialog() == DialogResult.OK)
                {
                    int folderNumber = gf.GetFolderNumber(this.SongFolder.Text);
                    int[] array = new int[30000];
                    if (gf.MoveToFolder > 0)
                    {
                        array[0] = 0;
                        if (gf.ReFileSelectedSongs(ref this.SongsList, folderNumber, gf.MoveToFolder, ref array, false) > 0)
                        {
                            this.HighlightCopyMoveItems(gf.MoveToFolder, ref array);
                        }
                    }
                }
            }
        }
        private void RemoveSongsListSong()
        {
            gf.SelectedItemsCount = this.SongsList.SelectedItems.Count;
            string text;
            if (gf.SelectedItemsCount == 1)
            {
                text = "Are you really sure you want to delete the selected song?";
            }
            else
            {
                if (gf.SelectedItemsCount <= 1)
                {
                    return;
                }
                text = "Are you really sure you want to delete the " + Convert.ToString(gf.SelectedItemsCount) + " songs you have selected?";
            }
            if (MessageBox.Show(text, "Delete Selected Song(s)", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                this.Cursor = Cursors.WaitCursor;
                int folderNumber = gf.GetFolderNumber(this.SongFolder.Text);
                int[] array = new int[30000];
                int num = 0;
                for (int i = this.SongsList.Items.Count - 1; i >= 0; i--)
                {
                    if (this.SongsList.Items[i].Selected)
                    {
                        num = i;
                    }
                }
                gf.ReFileSelectedSongs(ref this.SongsList, folderNumber, 0, ref array, true);
                if (this.SongsList.Items.Count > num)
                {
                    if (num >= 0)
                    {
                        this.SongsList.Items[num].Selected = true;
                    }
                }
                else
                {
                    if (this.SongsList.Items.Count > 0)
                    {
                        if (num - 1 >= 0 & this.SongsList.Items.Count >= num - 1)
                        {
                            this.SongsList.Items[num - 1].Selected = true;
                        }
                    }
                }
                this.SongsListIndexChanged();
                this.ShowStatusBarSummary();
                this.UpdateMenuEditHistory();
                this.Cursor = Cursors.Default;
            }
        }
        private bool IsSelectedTab(TabControl InTab, string InName)
        {
            bool result;
            if (InTab != null && InTab.TabCount > 0)
            {
                if (InTab.SelectedTab.Name.ToLower() == InName.ToLower())
                {
                    result = true;
                    return result;
                }
            }
            result = false;
            return result;
        }
        private int GetTabIndex(TabControl InTab, string InName)
        {
            int result;
            if (InTab != null && InTab.TabCount > 0)
            {
                for (int i = 0; i < InTab.TabCount; i++)
                {
                    if (InTab.TabPages[i].Name.ToLower() == InName.ToLower())
                    {
                        result = i;
                        return result;
                    }
                }
            }
            result = 0;
            return result;
        }
        private void HighlightCopyMoveItems(int InFolderNo, ref int[] RefileSongs)
        {
            if (RefileSongs[0] != 0)
            {
                if (this.tabControlSource.SelectedTab.Name != "tabFolders")
                {
                    this.tabControlSource.SelectedIndex = 0;
                }
                if (this.SongFolder.Text == gf.FolderName[InFolderNo])
                {
                    this.SongFolder_Change();
                }
                else
                {
                    this.SongFolder.Text = gf.FolderName[InFolderNo];
                }
                int num = -1;
                int num2 = RefileSongs[0];
                for (int i = 0; i < this.SongsList.Items.Count; i++)
                {
                    if (this.CompareRefileSongsList(gf.StringToInt(gf.Mid(this.SongsList.Items[i].SubItems[1].Text, 1)), ref RefileSongs))
                    {
                        this.SongsList.Items[i].Selected = true;
                        if (num < 0)
                        {
                            num2--;
                            num = i;
                        }
                        if (num2 == 0)
                        {
                            break;
                        }
                    }
                }
                if (num >= 0)
                {
                    this.SongsList.EnsureVisible(num);
                }
                this.SongsListIndexChanged();
            }
        }
        private bool CompareRefileSongsList(int inID, ref int[] RefileSongs)
        {
            bool result;
            if (RefileSongs[0] == 0)
            {
                result = false;
            }
            else
            {
                for (int i = 1; i <= RefileSongs[0]; i++)
                {
                    if (inID == RefileSongs[i])
                    {
                        result = true;
                        return result;
                    }
                }
                result = false;
            }
            return result;
        }
        private bool CompareRefileSongsList(string inID, ref string[] RefileSongs)
        {
            bool result;
            if (gf.StringToInt(RefileSongs[0]) == 0)
            {
                result = false;
            }
            else
            {
                for (int i = 1; i <= gf.StringToInt(RefileSongs[0]); i++)
                {
                    if (inID == RefileSongs[i])
                    {
                        result = true;
                        return result;
                    }
                }
                result = false;
            }
            return result;
        }
        private void HighlightCopyMoveExternalItems(ListView InListView, int SelectedFolderIndex, string[] RefileSongs, string InFileSymbol)
        {
            int num = gf.StringToInt(RefileSongs[0]);
            if (num >= 1)
            {
                if (InFileSymbol == "I")
                {
                    this.tabControlSource.SelectedIndex = this.GetTabIndex(this.tabControlSource, "tabFiles");
                    this.InfoScreenFolder.SelectedIndex = SelectedFolderIndex;
                    this.ShowInfoScreenFolderContents();
                }
                else
                {
                    if (InFileSymbol == "P")
                    {
                        this.tabControlSource.SelectedIndex = this.GetTabIndex(this.tabControlSource, "tabPowerpoint");
                        gf.PowerpointListingStyle = 0;
                        this.SetPowerpointListingButton();
                        this.PowerpointFolder.SelectedIndex = SelectedFolderIndex;
                        this.ShowPowerpointFolderContents(false);
                    }
                }
                int num2 = -1;
                for (int i = 0; i < InListView.Items.Count; i++)
                {
                    if (this.CompareRefileSongsList(InListView.Items[i].SubItems[0].Text, ref RefileSongs))
                    {
                        InListView.Items[i].Selected = true;
                        if (num2 < 0)
                        {
                            num--;
                            num2 = i;
                        }
                        if (num == 0)
                        {
                            break;
                        }
                    }
                }
                if (num2 >= 0)
                {
                    InListView.EnsureVisible(num2);
                }
                if (InFileSymbol == "I")
                {
                    this.InfoScreenListIndexChanged();
                }
                else
                {
                    this.PowerpointListIndexChanged();
                }
            }
        }
        private void ViewOptions()
        {
            gf.CurMainSelectedFolder = gf.GetFolderNumber(this.SongFolder.Text);
            gf.Options_MediaExtChanged = false;
            gf.Options_MediaDirChanged = false;
            gf.Options_FolderListChanged = false;
            gf.Options_FolderFormatChanged = false;
            gf.Options_BibleListChanged = false;
            gf.Options_MaxHistoryListChanged = false;
            gf.Options_PreviewAreaChanged = false;
            gf.Options_DMChanged = false;
            FrmOptions frmOptions = new FrmOptions();
            if (frmOptions.ShowDialog() == DialogResult.OK)
            {
                if (gf.Options_FolderListChanged | gf.Options_MediaDirChanged)
                {
                    this.Refresh();
                    this.BuildFolderList();
                    if (gf.Options_MediaDirChanged)
                    {
                        this.BuildMediaFolderList();
                    }
                }
                if (gf.Options_FolderFormatChanged)
                {
                    if (gf.PreviewItem.Type == "D")
                    {
                        if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
                        {
                            this.SongsListIndexChanged();
                        }
                        else
                        {
                            if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
                            {
                                this.WorshipListIndexChanged();
                            }
                        }
                    }
                }
                if (gf.Options_BibleListChanged)
                {
                    this.Refresh();
                    gf.LoadBibleVersions(ref this.TabBibleVersions);
                    gf.LoadBibleBooksList(this.TabBibleVersions, ref this.BookLookup, false, this.BibleText);
                    gf.Options_BibleListChanged = false;
                }
                if (gf.Options_MaxHistoryListChanged)
                {
                    gf.Options_MaxHistoryListChanged = false;
                    gf.SaveMainEditHistoryToRegistry();
                    this.UpdateMenuEditHistory();
                    gf.Edit_HistoryMaxChanged = true;
                }
                if (gf.Options_PreviewAreaChanged)
                {
                    this.PreviewNotations(gf.PreviewArea_ShowNotations);
                }
                if (gf.Options_DMChanged)
                {
                    this.SetMainDefaultBackScreen();
                    this.LoadItem(ref gf.PreviewItem, gf.PreviewItem.Type + gf.PreviewItem.ItemID, gf.PreviewItem.Format.FormatString, gf.PreviewItem.CurSlide);
                    this.LoadItem(ref gf.OutputItem, gf.OutputItem.Type + gf.OutputItem.ItemID, gf.OutputItem.Format.FormatString, gf.OutputItem.CurSlide);
                }
                if (gf.ShowRunning && gf.ShowLiveCam)
                {
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_LiveCamUpdate);
                }
                this.SetTabsVisibility();
                this.SetJumpToolTips();
                this.ShowStatusBarSummary();
            }
        }
        private void SetJumpToolTips()
        {
            int iLen = 15;
            string text = "FOLDER ";
            string value = "FOLDER";
            string text2 = gf.FolderName[gf.JumpToA];
            string text3 = gf.FolderName[gf.JumpToB];
            string text4 = gf.FolderName[gf.JumpToC];
            string text5 = gf.Trim(gf.Left(text2, iLen));
            string text6 = gf.Trim(gf.Left(text3, iLen));
            string text7 = gf.Trim(gf.Left(text4, iLen));
            if (gf.Left(gf.FolderName[gf.JumpToA].ToUpper(), text.Length) == text)
            {
                text5 = gf.Mid(text2, text.Length, iLen);
            }
            if (gf.Left(gf.FolderName[gf.JumpToB].ToUpper(), text.Length) == text)
            {
                text6 = gf.Mid(text3, text.Length, iLen);
            }
            if (gf.Left(gf.FolderName[gf.JumpToC].ToUpper(), text.Length) == text)
            {
                text7 = gf.Mid(text4, text.Length, iLen);
            }
            if (text2.ToUpper().IndexOf(value) < 0)
            {
                text2 = gf.FolderName[gf.JumpToA] + " Folder";
            }
            if (text3.ToUpper().IndexOf(value) < 0)
            {
                text3 = gf.FolderName[gf.JumpToB] + " Folder";
            }
            if (text4.ToUpper().IndexOf(value) < 0)
            {
                text4 = gf.FolderName[gf.JumpToC] + " Folder";
            }
            this.Main_JumpA.Text = text5;
            this.Main_JumpA.ToolTipText = text2;
            this.Main_JumpB.Text = text6;
            this.Main_JumpB.ToolTipText = text3;
            this.Main_JumpC.Text = text7;
            this.Main_JumpC.ToolTipText = text4;
        }
        private void ShowAlertForm()
        {
            if (gf.FormInUse("Show Alert"))
            {
                gf.AlertRestoreWindow = true;
            }
            else
            {
                gf.MessageAlertRequested = false;
                gf.ParentalAlertRequested = false;
                gf.LyricsAlertRequested = false;
                gf.AlertFormOpen = true;
                try
                {
                    this.AlertWindow.Show();
                }
                catch
                {
                    try
                    {
                        this.AlertWindow = new FrmShowAlert();
                        this.AlertWindow.OnMessage += new FrmShowAlert.Message(this.AlertWindow_OnMessage);
                        this.AlertWindow.Show();
                    }
                    catch
                    {
                    }
                }
                this.TimerMessagingWindowOpen.Start();
            }
        }
        private void Menu_Recover_Click(object sender, EventArgs e)
        {
            FrmRecoverDeleted frmRecoverDeleted = new FrmRecoverDeleted();
            if (frmRecoverDeleted.ShowDialog() == DialogResult.OK)
            {
                this.SongFolder_Change();
            }
        }
        private void Main_EditBtns_Click(object sender, EventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            if (this.IsSelectedTab(this.tabControlSource, "tabFolders"))
            {
                if (name == "Main_New")
                {
                    this.AddNew();
                }
                else
                {
                    if (name == "Main_Edit")
                    {
                        this.Edit_SongsListSong();
                    }
                    else
                    {
                        if (name == "Main_Copy")
                        {
                            this.Copy_Song();
                        }
                        else
                        {
                            if (name == "Main_Move")
                            {
                                this.Move_Song();
                            }
                            else
                            {
                                if (name == "Main_Delete")
                                {
                                    this.RemoveSongsListSong();
                                }
                            }
                        }
                    }
                }
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
                {
                    if (name == "Main_New")
                    {
                        this.EF_New_Clicked();
                    }
                    else
                    {
                        if (name == "Main_Edit")
                        {
                            this.EF_Edit_Clicked();
                        }
                        else
                        {
                            if (name == "Main_Copy")
                            {
                                this.EF_Copy_Clicked();
                            }
                            else
                            {
                                if (name == "Main_Move")
                                {
                                    this.EF_Move_Clicked();
                                }
                                else
                                {
                                    if (name == "Main_Delete")
                                    {
                                        this.EF_Delete_Clicked();
                                    }
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                    {
                        if (name == "Main_Edit")
                        {
                            this.PP_Edit_Clicked();
                        }
                        else
                        {
                            if (name == "Main_Copy")
                            {
                                this.PP_Copy_Clicked();
                            }
                            else
                            {
                                if (name == "Main_Move")
                                {
                                    this.PP_Move_Clicked();
                                }
                                else
                                {
                                    if (name == "Main_Delete")
                                    {
                                        this.PP_Delete_Clicked();
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        private void InfoScreen_EditBtns_Click(object sender, EventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            if (name == "InfoScreen_New")
            {
                this.EF_New_Clicked();
            }
            else
            {
                if (name == "InfoScreen_Edit")
                {
                    this.EF_Edit_Clicked();
                }
                else
                {
                    if (name == "InfoScreen_Copy")
                    {
                        this.EF_Copy_Clicked();
                    }
                    else
                    {
                        if (name == "InfoScreen_Move")
                        {
                            this.EF_Move_Clicked();
                        }
                        else
                        {
                            if (name == "InfoScreen_Delete")
                            {
                                this.EF_Delete_Clicked();
                            }
                        }
                    }
                }
            }
        }
        private void Powerpoint_EditBtns_Click(object sender, EventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            if (name == "Powerpoint_Edit")
            {
                this.PP_Edit_Clicked();
            }
            else
            {
                if (name == "Powerpoint_Copy")
                {
                    this.PP_Copy_Clicked();
                }
                else
                {
                    if (name == "Powerpoint_Move")
                    {
                        this.PP_Move_Clicked();
                    }
                    else
                    {
                        if (name == "Powerpoint_Delete")
                        {
                            this.PP_Delete_Clicked();
                        }
                    }
                }
            }
        }
        private void Main_Media_Click(object sender, EventArgs e)
        {
            this.SongsListPlay();
        }
        private void SongsListPlay()
        {
            string title = "";
            int num = 0;
            int index = 0;
            string name = this.tabControlSource.SelectedTab.Name;
            if (name != null)
            {
                if (!(name == "tabFolders"))
                {
                    if (name == "tabFiles")
                    {
                        if (this.InfoScreenList.SelectedItems.Count > 0)
                        {
                            string text = this.InfoScreenList.SelectedItems[0].SubItems[1].Text;
                            if (gf.Left(text, 1) == "I")
                            {
                                string text2 = "";
                                gf.LoadIndividualData(ref gf.TempItem1, text, "", 1, ref text2);
                                string title2 = gf.TempItem1.Title;
                                title = gf.TempItem1.Title2;
                                gf.Play_Media(title2, title);
                            }
                        }
                    }
                }
                else
                {
                    if (this.SongsList.Items.Count > 0)
                    {
                        for (int i = 0; i <= this.SongsList.Items.Count - 1; i++)
                        {
                            if (this.SongsList.Items[i].Selected)
                            {
                                num++;
                                index = i;
                                if (num > 1)
                                {
                                    i = this.SongsList.Items.Count - 1;
                                }
                            }
                        }
                        if (num != 1)
                        {
                            MessageBox.Show("Please select ONE item from the Songs List to play");
                        }
                        else
                        {
                            string title2 = gf.RemoveMusicSym(this.SongsList.Items[index].Text);
                            string text3 = this.SongsList.Items[index].SubItems[1].Text;
                            string inString = gf.Right(text3, text3.Length - 1);
                            int inKey = gf.StringToInt(inString);
                            if (gf.Left(text3, 1) == "D")
                            {
                                title = gf.LookupDBTitle2(inKey);
                            }
                            gf.Play_Media(title2, title);
                        }
                    }
                }
            }
        }
        private void Main_Refresh_Click(object sender, EventArgs e)
        {
            this.RefreshItems();
        }
        private void Main_Options_Click(object sender, EventArgs e)
        {
            this.ViewOptions();
        }
        private void Main_Alerts_Click(object sender, EventArgs e)
        {
            this.ShowAlertForm();
        }
        private void Main_RotateStyle_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Main_RotateStyle, e.ClickedItem.Name, this.Main_Rotate0, this.Main_Rotate1, this.Main_Rotate2, this.Main_Rotate3);
            gf.AutoRotateStyle = gf.ObjToInt(this.Main_RotateStyle.Tag);
        }
        private void Main_NoRotate_Click(object sender, EventArgs e)
        {
            this.SetRotateState(!this.Main_NoRotate.Checked);
        }
        private void SetRotateState(bool RotateOn)
        {
            this.Main_NoRotate.Checked = !RotateOn;
            gf.AutoRotateOn = RotateOn;
            gf.RestartCurrentItem = false;
            if (gf.ShowRunning)
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_RotateOnOffChanged);
            }
        }
        private void Main_Chinese_Click(object sender, EventArgs e)
        {
            this.OutputChineseSwitch();
        }
        private void Main_Find_Click(object sender, EventArgs e)
        {
            this.Find_Items();
        }
        private void Main_Jump_Click(object sender, EventArgs e)
        {
            ToolStripButton toolStripButton = (ToolStripButton)sender;
            string name = toolStripButton.Name;
            this.tabControlSource.SelectedIndex = 0;
            int num = this.SongFolder.SelectedIndex;
            if (name == "Main_JumpA")
            {
                num = gf.JumpToA;
            }
            else
            {
                if (name == "Main_JumpB")
                {
                    num = gf.JumpToB;
                }
                else
                {
                    if (name == "Main_JumpC")
                    {
                        num = gf.JumpToC;
                    }
                }
            }
            if (num > 0 && num < 41)
            {
                if (gf.FolderUse[num] > 0)
                {
                    try
                    {
                        this.SongFolder.Text = gf.FolderName[num];
                    }
                    catch
                    {
                    }
                }
            }
        }
        private void Menu_Empty_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("This will permanently remove all the songs in the Deleted Folder - Are you really sure?", "Permanent Delete Song(s)", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                this.Cursor = Cursors.WaitCursor;
                if (!gf.EmptyDelFolder())
                {
                    MessageBox.Show("Error encountered - Not all the songs were deleted. Please try again later.");
                }
                this.Cursor = Cursors.Default;
            }
        }
        private void Menu_Compact_Click(object sender, EventArgs e)
        {
            gf.CompactAllDB();
        }
        private void Menu_ClearAllFormatting_Click(object sender, EventArgs e)
        {
            if (gf.ClearAllFormatting())
            {
                if (gf.PreviewItem.Source == gf.ItemSource.SongsList && gf.PreviewItem.Type == "D")
                {
                    this.SongsListIndexChanged();
                }
            }
        }
        private void Menu_ClearRegistrySettings_Click(object sender, EventArgs e)
        {
            if (gf.ClearRegistrySettings())
            {
                this.SaveToRegistryOnClosing = false;
                base.Close();
            }
        }
        private void Menu_Exit_Click(object sender, EventArgs e)
        {
            base.Close();
        }
        private void Main_QuickFind_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Return | e.KeyCode == Keys.Return)
            {
                this.Main_QuickFind.Text = gf.Trim(this.Main_QuickFind.Text);
                if (!(this.Main_QuickFind.Text == ""))
                {
                    this.Cursor = Cursors.WaitCursor;
                    if (this.IsSelectedTab(this.tabControlSource, "tabFolders"))
                    {
                        gf.FindFolderItems = true;
                        gf.FindBibleVerses = false;
                        gf.Find_SQLString = gf.BuildItemSearchString(this.Main_QuickFind.Text) + " and folderno > 0";
                        this.Do_Find(false);
                    }
                    else
                    {
                        if (this.IsSelectedTab(this.tabControlSource, "tabBibles"))
                        {
                            if (gf.HB_TotalVersions < 1)
                            {
                                return;
                            }
                            gf.FindBibleVerses = true;
                            gf.FindFolderItems = false;
                            gf.HB_SQLString = gf.BuildBibleSearchString(this.Main_QuickFind.Text, this.TabBibleVersions.SelectedIndex);
                            this.BibleVerseSearch();
                        }
                    }
                    if (this.Main_QuickFind.Items.Count == 0 || this.Main_QuickFind.Text != this.Main_QuickFind.Items[0].ToString())
                    {
                        try
                        {
                            this.Main_QuickFind.Items.Insert(0, this.Main_QuickFind.Text);
                            if (this.Main_QuickFind.Items.Count > 20)
                            {
                                for (int i = this.Main_QuickFind.Items.Count; i >= 21; i--)
                                {
                                    this.Main_QuickFind.Items.RemoveAt(i);
                                }
                            }
                        }
                        catch
                        {
                        }
                    }
                    this.Cursor = Cursors.Default;
                }
            }
        }
        private void Do_Find(bool InMusicOnly)
        {
            if (gf.FindFolderItems)
            {
                gf.FindFolderItems = false;
                this.tabControlSource.SelectedIndex = this.GetTabIndex(this.tabControlSource, "tabFolders");
                this.ImplementFolderChange = false;
                if (this.SongFolder.Text != "Search Results:")
                {
                    this.SongFolder.Items.Add("Search Results:");
                }
                this.SongFolder.SelectedIndex = this.SongFolder.Items.Count - 1;
                this.ImplementFolderChange = true;
                this.SongsList.Items.Clear();
                this.SongsList.RightToLeft = RightToLeft.No;
                this.SongsList.RightToLeftLayout = false;
                this.statusStripMain.Items[0].Text = "";
                this.statusStripMain.Items[0].ToolTipText = "";
                this.FillList(-1, "", InMusicOnly);
            }
            else
            {
                if (gf.HB_SQLString != "")
                {
                    this.BibleVerseSearch();
                }
            }
        }
        private void BibleVerseSearch()
        {
            this.Cursor = Cursors.WaitCursor;
            this.HB_SearchInProgress = true;
            this.tabControlSource.SelectedIndex = this.GetTabIndex(this.tabControlSource, "tabBibles");
            this.TabBibleVersions.SelectedIndex = gf.HB_CurVersionTabIndex;
            this.TabBibleVersionsChanged();
            this.BibleText.Text = "";
            this.HB_CurSelectedPassages = "";
            this.HB_CurSelectedTitle = "";
            gf.SearchBiblePassages(this.TabBibleVersions.SelectedIndex, ref this.BookLookup, gf.HB_SQLString, ref this.BibleText, gf.HB_ShowVerses);
            gf.HB_SQLString = "";
            gf.HB_SequentialListing = false;
            this.HB_SearchInProgress = false;
            this.ShowStatusBarSummary();
            this.Cursor = Cursors.Default;
        }
        private void Main_QuickFind_Enter(object sender, EventArgs e)
        {
            if (gf.UseFocusedTextRegionColour)
            {
                Color backColor = this.Main_QuickFind.BackColor;
                gf.SetEnterColour(ref backColor);
                this.Main_QuickFind.BackColor = backColor;
            }
            this.Main_QuickFind.SelectAll();
        }
        private void Main_QuickFind_Leave(object sender, EventArgs e)
        {
            Color backColor = this.Main_QuickFind.BackColor;
            gf.SetLeaveColour(ref backColor);
            this.Main_QuickFind.BackColor = backColor;
        }
        private void Find_Items()
        {
            gf.FindFolderItems = false;
            gf.FindBibleVerses = this.IsSelectedTab(this.tabControlSource, "tabBibles");
            if (gf.FormInUse("Search for EasiSlides Items"))
            {
                gf.FindItemRestoreWindow = true;
            }
            else
            {
                FrmFind frmFind = new FrmFind();
                gf.FindItemsRequested = false;
                gf.FindItemsFormOpen = true;
                frmFind.Show();
                this.TimerSearch.Start();
            }
        }
        private void TimerSearch_Tick(object sender, EventArgs e)
        {
            if (gf.FindItemsRequested)
            {
                gf.FindItemsRequested = false;
                this.Do_Find(gf.FindItemMediaOnly);
            }
            if (!gf.FindItemsFormOpen)
            {
                this.TimerSearch.Stop();
            }
        }
        private void CMenuSongs_SelectAll_Click(object sender, EventArgs e)
        {
            this.SongsList_SelectAll();
        }
        private void CMenuSongs_UnselectAll_Click(object sender, EventArgs e)
        {
            this.SongsList_UnselectAll();
        }
        private void SongsList_UnselectAll()
        {
            if (this.SongsList.Items.Count > 0)
            {
                this.Cursor = Cursors.WaitCursor;
                for (int i = 0; i < this.SongsList.Items.Count; i++)
                {
                    this.SongsList.Items[i].Selected = false;
                }
                this.SongsListIndexChanged();
                this.Cursor = Cursors.Default;
            }
        }
        private void CMenuSongs_AddShow_Click(object sender, EventArgs e)
        {
            if (this.AddToWorshipList())
            {
                int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                this.WorshipListItems.EnsureVisible(selectedIndex);
                gf.StartPresAt = selectedIndex + 1;
                this.PreviewItemToLive();
            }
        }
        private void CMenuSongs_Edit_Click(object sender, EventArgs e)
        {
            this.Edit_SongsListSong();
        }
        private void CMenuSongs_Copy_Click(object sender, EventArgs e)
        {
            this.Copy_Song();
        }
        private void CMenuSongs_Refresh_Click(object sender, EventArgs e)
        {
        }
        private void CMenuImages_AddItem_Click(object sender, EventArgs e)
        {
            this.ApplyBackground(this.ThumbImageClicked, 1);
        }
        private void CMenuImages_AddDefault_Click(object sender, EventArgs e)
        {
            this.ApplyBackground(this.ThumbImageClicked, 0);
        }
        private void CMenuImages_Refresh_Click(object sender, EventArgs e)
        {
            this.BuildPicturesFolderList();
        }
        private void CMenuImages_Opening(object sender, CancelEventArgs e)
        {
            this.CMenuImages_AddItem.Enabled = !(gf.PreviewItem.ItemID == "");
        }
        private void CMenuWorship_SelectAll_Click(object sender, EventArgs e)
        {
            this.WorshipList_SelectAll();
        }
        private void CMenuWorship_UnselectAll_Click(object sender, EventArgs e)
        {
            this.WorshipList_UnselectAll();
        }
        private void CMenuWorship_Clear_Click(object sender, EventArgs e)
        {
            this.WorshipListItems.Items.Clear();
            this.WorshipListIndexChanged();
            this.SaveWorshipList();
        }
        private void CMenuWorship_Edit_Click(object sender, EventArgs e)
        {
            this.Edit_WorshipListSong();
        }
        private void Edit_WorshipListSong()
        {
            if (this.WorshipListItems.Items.Count != 0)
            {
                if (this.WorshipListItems.SelectedItems.Count != 1)
                {
                    MessageBox.Show("Please select ONE item from the Worship List to edit");
                }
                else
                {
                    string text = "Worship List";
                    int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems, ref text);
                    if (selectedIndex >= 0)
                    {
                        string text2 = this.WorshipListItems.Items[selectedIndex].SubItems[1].Text;
                        if (gf.Left(text2, 1) == "B")
                        {
                            string text3 = this.WorshipListItems.Items[selectedIndex].SubItems[0].Text;
                            string text4 = this.Edit_Item(text2, ref text3);
                            this.WorshipListItems.Items[selectedIndex].SubItems[0].Text = text3;
                            if (text4 != "")
                            {
                                this.WorshipListItems.Items[selectedIndex].SubItems[1].Text = text4;
                                this.WorshipListIndexChanged();
                            }
                        }
                        else
                        {
                            this.Edit_Item(text2);
                        }
                    }
                }
            }
        }
        private void CMenuWorship_Play_Click(object sender, EventArgs e)
        {
            this.WorshipListPlay();
        }
        private void WorshipListPlay()
        {
            string title = "";
            int num = 0;
            int index = 0;
            if (this.WorshipListItems.Items.Count > 0)
            {
                for (int i = 0; i <= this.WorshipListItems.Items.Count - 1; i++)
                {
                    if (this.WorshipListItems.Items[i].Selected)
                    {
                        num++;
                        index = i;
                        if (num > 1)
                        {
                            i = this.WorshipListItems.Items.Count - 1;
                        }
                    }
                }
                if (num != 1)
                {
                    MessageBox.Show("Please select ONE item from the Worship List to play");
                }
                else
                {
                    string title2 = gf.RemoveMusicSym(this.WorshipListItems.Items[index].Text);
                    string text = this.WorshipListItems.Items[index].SubItems[1].Text;
                    string inString = gf.Right(text, text.Length - 1);
                    int inKey = gf.StringToInt(inString);
                    if (gf.Left(text, 1) == "D")
                    {
                        title = gf.LookupDBTitle2(inKey);
                    }
                    gf.Play_Media(title2, title);
                }
            }
        }
        private void CMenuWorship_AddUsages_Click(object sender, EventArgs e)
        {
            this.AddToUsages();
        }
        private void CMenuPraiseB_SelectAll_Click(object sender, EventArgs e)
        {
            this.PraiseBookList_SelectAll();
        }
        private void CMenuPraiseB_UnselectAll_Click(object sender, EventArgs e)
        {
            this.PraiseBookList_UnselectAll();
        }
        private void CMenuPraiseB_Clear_Click(object sender, EventArgs e)
        {
            this.PraiseBookItems.Items.Clear();
            this.PraiseBookListIndexChanged();
            this.SavePraiseBook();
        }
        private void CMenuPraiseB_Edit_Click(object sender, EventArgs e)
        {
            this.Edit_PraiseBookSong();
        }
        private void Menu_AddToUsages_Click(object sender, EventArgs e)
        {
            this.AddToUsages();
        }
        private void Menu_ViewUsages_Click(object sender, EventArgs e)
        {
            FrmUsages frmUsages = new FrmUsages();
            frmUsages.ShowDialog();
        }
        private void AddToUsages()
        {
            if (this.WorshipListItems.Items.Count == 0)
            {
                MessageBox.Show("There are no items on the current Worship List");
            }
            else
            {
                int num = 0;
                int num2 = 0;
                bool flag = false;
                if (gf.ValidateDB(gf.DatabaseType.Usages))
                {
                    try
                    {
                        OleDbConnection oleDbConnection = new OleDbConnection(gf.ConnectStringUsageDB);
                        oleDbConnection.Open();
                        for (int i = 0; i < this.WorshipListItems.Items.Count; i++)
                        {
                            if (gf.Left(this.WorshipListItems.Items[i].SubItems[1].Text, 1) == "D")
                            {
                                num2 = i + 1;
                                string text = "Insert into [USAGE] (WORSHIP_DATE,WORSHIP_LIST,SONG_TITLE,SONG_NUMBER,SONG_ID,ADMIN_1,ADMIN_2) Values (?,?,?,?,?,?,?)";
                                OleDbCommand oleDbCommand = new OleDbCommand(text, oleDbConnection);
                                oleDbCommand.CommandText = text;
                                oleDbCommand.Parameters.AddWithValue("@WORSHIP_DATE", DateTime.Now.Date);
                                oleDbCommand.Parameters.AddWithValue("@WORSHIP_LIST", gf.Left(this.SessionList.Text, 50));
                                oleDbCommand.Parameters.AddWithValue("@SONG_TITLE", gf.RemoveMusicSym(gf.Left(this.WorshipListItems.Items[i].SubItems[0].Text, 100)));
                                oleDbCommand.Parameters.AddWithValue("@SONG_NUMBER", gf.StringToInt(this.WorshipListItems.Items[i].SubItems[3].Text));
                                oleDbCommand.Parameters.AddWithValue("@SONG_ID", gf.Mid(this.WorshipListItems.Items[i].SubItems[1].Text, 2));
                                oleDbCommand.Parameters.AddWithValue("@ADMIN_1", gf.Left(this.WorshipListItems.Items[i].SubItems[4].Text, 50));
                                oleDbCommand.Parameters.AddWithValue("@ADMIN_2", gf.Left(this.WorshipListItems.Items[i].SubItems[5].Text, 50));
                                oleDbCommand.ExecuteNonQuery();
                                num++;
                            }
                        }
                    }
                    catch
                    {
                        flag = true;
                        if (num2 < 1)
                        {
                            MessageBox.Show("Error writing usages details to the Usages Database. Please re-start EasiSlides and try again.");
                        }
                        else
                        {
                            MessageBox.Show("Error writing Item " + num2.ToString() + " to Usages Database.");
                        }
                    }
                    if (num == 0)
                    {
                        if (!flag)
                        {
                            MessageBox.Show("There are no Database Items on the Worship List!");
                        }
                    }
                    else
                    {
                        if (num == 1)
                        {
                            MessageBox.Show("Done. Detail of " + Convert.ToString(num) + " Database Item was added to Usages record.");
                        }
                        else
                        {
                            MessageBox.Show("Done. Details of " + Convert.ToString(num) + " Database Items were added to the Usages record.");
                        }
                    }
                }
            }
        }
        private void Menu_SmartMerge_Click(object sender, EventArgs e)
        {
            FrmSmartMerge frmSmartMerge = new FrmSmartMerge();
            frmSmartMerge.ShowDialog();
        }
        private void Menu_Contents_Click(object sender, EventArgs e)
        {
            if (!gf.RunProcess(gf.HelpFile_Location))
            {
                MessageBox.Show("Cannot find the Help File - please Reinstall/Repair EasiSlides to install the Help Files.");
            }
        }
        private void Menu_HelpWeb_Click(object sender, EventArgs e)
        {
            if (!gf.RunProcess("http://www.easislides.com/help"))
            {
                MessageBox.Show("Error - Cannot access www.EasiSlides.com. Please enable your internet connection and then try again.");
            }
        }
        private void Menu_Register_Click(object sender, EventArgs e)
        {
            //FrmRegister frmRegister = new FrmRegister();
            //frmRegister.ShowDialog();
        }
        private void Menu_About_Click(object sender, EventArgs e)
        {
            FrmAbout frmAbout = new FrmAbout();
            frmAbout.ShowDialog();
            this.Text = "EasiSlides" + ((gf.UserString != "") ? (" - " + gf.UserString) : "");
        }
        private void AddNew()
        {
            gf.CurFolderName = this.SongFolder.Text;
            gf.DB_CurSongID = 0;
            if (gf.FormInUse("Edit Database Item"))
            {
                gf.Edit_RequestReceived = true;
            }
            else
            {
                this.ShowEditItemForm();
            }
        }
        private void Edit_SongsListSong()
        {
            if (this.SongsList.Items.Count != 0)
            {
                if (this.SongsList.SelectedItems.Count != 1)
                {
                    MessageBox.Show("Please select ONE item from the Songs List to edit.");
                }
                else
                {
                    string text = "Songs List";
                    int selectedIndex = gf.GetSelectedIndex(this.SongsList, ref text);
                    if (selectedIndex >= 0)
                    {
                        string text2 = this.SongsList.Items[selectedIndex].SubItems[1].Text;
                        this.Edit_Item(text2);
                    }
                }
            }
        }
        private string Edit_Item(string InIDString)
        {
            string text = "";
            return this.Edit_Item(InIDString, ref text);
        }
        private string Edit_Item(string InIDString, ref string InTitle)
        {
            this.Cursor = Cursors.WaitCursor;
            string result = this.UseCorrectEditor(InIDString, ref InTitle);
            this.Cursor = Cursors.Default;
            return result;
        }
        private string UseCorrectEditor(string InIDString, ref string InTitle)
        {
            this.AddToEditHistory(InIDString);
            string a = gf.Left(InIDString, 1);
            string text = gf.Right(InIDString, InIDString.Length - 1);
            string result;
            if (a == "D")
            {
                gf.DB_CurSongID = gf.StringToInt(text);
                if (gf.ValidSongID(gf.DB_CurSongID))
                {
                    if (gf.FormInUse("Edit Database Item"))
                    {
                        gf.Edit_RequestReceived = true;
                    }
                    else
                    {
                        this.ShowEditItemForm();
                    }
                }
                result = "";
            }
            else
            {
                if (a == "P")
                {
                    if (File.Exists(text))
                    {
                        if (!gf.RunProcess(text))
                        {
                            MessageBox.Show("Cannot edit Powerpoint document!  It appears Powerpoint is not installed on this machine.");
                        }
                    }
                    else
                    {
                        MessageBox.Show("The Powerpoint File is missing!");
                    }
                    result = "";
                }
                else
                {
                    if (a == "B")
                    {
                        gf.EditBible_IDString = InIDString;
                        gf.EditBible_Title = InTitle;
                        FrmEditBibleItem frmEditBibleItem = new FrmEditBibleItem();
                        if (frmEditBibleItem.ShowDialog() == DialogResult.OK)
                        {
                            InTitle = gf.EditBible_Title;
                        }
                        result = gf.EditBible_IDString;
                    }
                    else
                    {
                        if (a == "T")
                        {
                            if (gf.Right(text, 4) != ".txt")
                            {
                                result = "";
                                return result;
                            }
                            if (File.Exists(text))
                            {
                                if (!gf.RunProcess(text))
                                {
                                    MessageBox.Show("Cannot edit text file! Please set a default text editor and try again.");
                                }
                            }
                            else
                            {
                                MessageBox.Show("The Text File is missing!");
                            }
                        }
                        else
                        {
                            if (a == "I")
                            {
                                if (gf.Right(text, 4) != ".esi")
                                {
                                    result = "";
                                    return result;
                                }
                                this.ShowInfoScreen(text);
                            }
                            else
                            {
                                if (a == "W")
                                {
                                    if (gf.Right(text, 4) != ".doc")
                                    {
                                        result = "";
                                        return result;
                                    }
                                    if (File.Exists(text))
                                    {
                                        if (!gf.RunProcess(text))
                                        {
                                            MessageBox.Show("Cannot edit Word document!  It appears Microsoft Word is not installed on this machine.");
                                        }
                                    }
                                    else
                                    {
                                        MessageBox.Show("The Word Document is missing!");
                                    }
                                }
                                else
                                {
                                    if (a == "M")
                                    {
                                        this.Ind_checkBox.Checked = true;
                                        this.Ind_checkBox_Action();
                                        this.Ind_Media_Clicked();
                                    }
                                }
                            }
                        }
                        result = "";
                    }
                }
            }
            return result;
        }
        private void ShowEditItemForm()
        {
            FrmEditItem frmEditItem = new FrmEditItem();
            gf.EditorFormOpen = true;
            this.TimerMessagingWindowOpen.Start();
            frmEditItem.Show();
        }
        private int ValidatePraiseBookItems()
        {
            for (int i = 0; i < this.PraiseBookItems.Items.Count; i++)
            {
                gf.DocumentSongs[i + 1, 0] = this.PraiseBookItems.Items[i].SubItems[3].Text;
                gf.DocumentSongs[i + 1, 1] = "D";
                gf.DocumentSongs[i + 1, 2] = gf.RemoveMusicSym(gf.Trim(this.PraiseBookItems.Items[i].SubItems[2].Text));
                gf.DocumentSongs[i + 1, 3] = this.PraiseBookItems.Items[i].SubItems[4].Text;
                gf.DocumentSongs[i + 1, 4] = (gf.UseSongNumbers ? this.PraiseBookItems.Items[i].SubItems[5].Text : "") + '>';
                gf.TotalPraiseBookItems = this.PraiseBookItems.Items.Count;
            }
            return -1;
        }
        private void CMenuBible_SelectAll_Click(object sender, EventArgs e)
        {
            this.HB_SelectAll();
        }
        private void CMenuBible_UnselectAll_Click(object sender, EventArgs e)
        {
            this.HB_UnselectAll();
        }
        private void CMenuBible_AddShow_Click(object sender, EventArgs e)
        {
            if (this.HB_StartBuildStringProcess())
            {
                if (this.AddToWorshipList())
                {
                    int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                    this.WorshipListItems.EnsureVisible(selectedIndex);
                    gf.StartPresAt = selectedIndex + 1;
                    this.PreviewItemToLive();
                }
            }
        }
        private void BibleR2MenuClickHandler(object sender, EventArgs e)
        {
            ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)sender;
            this.AddRegion2ToBiblePassage(gf.ObjToInt(toolStripMenuItem.Tag));
        }
        private void AddRegion2ToBiblePassage(int InVersionNo)
        {
            string text = gf.ExtractOneInfo(ref this.HB_CurSelectedPassages, ';') + ';';
            text = text + gf.ExtractOneInfo(ref this.HB_CurSelectedPassages, ';') + ';';
            gf.ExtractOneInfo(ref this.HB_CurSelectedPassages, ';');
            text = text + gf.GetDisplayNameOnly(ref gf.HB_Versions[InVersionNo, 4], false, true) + ';';
            this.HB_CurSelectedPassages = text + this.HB_CurSelectedPassages;
            this.HB_SelectedPassagesChanged(this.HB_CurSelectedPassages, ref this.HB_CurSelectedTitle);
            this.HB_CurSelectedFormat = gf.PreviewItem.Format.FormatString;
            this.BibleText.Focus();
        }
        private void CMenuBible_Copy_Click(object sender, EventArgs e)
        {
            this.HB_CopyText();
        }
        private void CMenuBible_CopyInfoScreen_Click(object sender, EventArgs e)
        {
            if (this.BibleText.Text != "")
            {
                string text = gf.PreviewItem.CompleteLyrics.Replace('\u0098'.ToString(), "");
                if (text != "")
                {
                    Clipboard.SetDataObject(text);
                    string titleString = "";
                    try
                    {
                        titleString = string.Concat(new object[]
						{
							"*NEW*",
							'>',
							gf.HB_Versions[this.TabBibleVersions.SelectedIndex, 5],
							'>',
							gf.PreviewItem.Title
						});
                    }
                    catch
                    {
                        titleString = string.Concat(new object[]
						{
							"*NEW*",
							'>',
							gf.PreviewItem.FolderNo.ToString(),
							'>',
							gf.PreviewItem.Title
						});
                    }
                    this.ShowInfoScreen(titleString);
                }
            }
        }
        private void HB_SelectAll()
        {
            if (this.BibleText.Text != "")
            {
                this.BibleText.SelectionStart = 0;
                this.BibleText.SelectionLength = this.BibleText.Text.Length;
                this.HB_StartBuildStringProcess();
            }
        }
        private void HB_UnselectAll()
        {
            this.BibleText.SelectionLength = 0;
            this.HB_CurSelectedPassages = "";
            this.HB_CurSelectedTitle = "";
            this.HB_SelectedPassagesChanged(this.HB_CurSelectedPassages, ref this.HB_CurSelectedTitle);
        }
        private void HB_CopyText()
        {
            if (this.BibleText.Text != "")
            {
                Clipboard.SetDataObject(this.BibleText.SelectedText);
            }
        }
        private void ShowInfoScreen(string TitleString)
        {
            if (gf.FormInUse("InfoScreen"))
            {
                gf.InfoScreenFileName = TitleString;
                gf.InfoScreen_RequestReceived = true;
            }
            else
            {
                FrmInfoScreen frmInfoScreen = new FrmInfoScreen();
                gf.InfoScreen_RequestReceived = false;
                gf.InfoScreenFormOpen = true;
                gf.InfoScreenAction = gf.InfoType.NoAction;
                gf.InfoScreenFileName = TitleString;
                gf.InfoScreenBackgroundPicture = "";
                gf.InfoScreenLoadNewBackground = false;
                frmInfoScreen.Show();
                this.TimerMessagingWindowOpen.Start();
            }
        }
        private void TimerMessagingWindowOpen_Tick(object sender, EventArgs e)
        {
            if (gf.InfoScreenFormOpen || gf.InfoScreenLoadItem || gf.EditorFormOpen)
            {
                if (gf.InfoScreenLoadItem)
                {
                    gf.InfoScreenLoadItem = false;
                    this.AddToEditHistory("I" + gf.InfoScreenFileName);
                    if (gf.InfoScreenAction == gf.InfoType.Save)
                    {
                        gf.InfoScreenAction = gf.InfoType.NoAction;
                        if (gf.PreviewItem.Source == gf.ItemSource.WorshipList && gf.PreviewItem.ItemID == gf.InfoScreenFileName)
                        {
                            this.WorshipListIndexChanged();
                        }
                        else
                        {
                            if (!this.IsSelectedTab(this.tabControlSource, "tabFiles"))
                            {
                                this.tabControlSource.SelectedIndex = this.GetTabIndex(this.tabControlSource, "tabFiles");
                            }
                            this.HighlightNewInfoScreenItem();
                        }
                    }
                    gf.InfoScreenItemNew = false;
                }
                if (gf.EditorLoadItem)
                {
                    gf.EditorLoadItem = false;
                    this.AddToEditHistory("D" + gf.EditorItemID.ToString());
                    if (gf.EditorItemNew | gf.EditorItemFolderChanged | gf.EditorItemTitleChanged)
                    {
                        this.HighlightNewFolderItem();
                    }
                    if (gf.PreviewItem.ItemID == gf.EditorItemID.ToString())
                    {
                        if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
                        {
                            this.SongsListIndexChanged();
                        }
                        else
                        {
                            if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
                            {
                                this.WorshipListIndexChanged();
                            }
                            else
                            {
                                if (gf.PreviewItem.Source == gf.ItemSource.PraiseBook)
                                {
                                    this.PraiseBookListIndexChanged();
                                }
                            }
                        }
                    }
                }
            }
            else
            {
                this.TimerMessagingWindowOpen.Stop();
            }
        }
        private void HighlightNewInfoScreenItem()
        {
            this.BuildInfoScreenFolderList();
            int num = -1;
            string a = Path.GetDirectoryName(gf.InfoScreenFileName) + "\\";
            for (int i = 0; i < gf.InfoScreenFolderTotal; i++)
            {
                if (a == gf.InfoScreenGroups[i, 1])
                {
                    num = i;
                    i = gf.InfoScreenFolderTotal;
                }
            }
            if (num >= 0)
            {
                this.InfoScreenFolder.SelectedIndex = num;
                string displayNameOnly = gf.GetDisplayNameOnly(ref gf.InfoScreenFileName, false);
                try
                {
                    for (int i = 0; i < this.InfoScreenList.Items.Count; i++)
                    {
                        if (this.InfoScreenList.Items[i].SubItems[0].Text == displayNameOnly)
                        {
                            this.InfoScreenList.Items[i].Selected = true;
                            this.InfoScreenListIndexChanged();
                            this.SongsList.EnsureVisible(i);
                            i = this.InfoScreenList.Items.Count;
                        }
                    }
                }
                catch
                {
                }
            }
            gf.InfoScreenItemNew = false;
            gf.InfoScreenLoadItem = false;
        }
        private void HighlightNewFolderItem()
        {
            if (gf.EditorItemNew | gf.EditorItemFolderChanged | this.SongFolder.Text != gf.FolderName[gf.EditorItemNewFolder])
            {
                this.ImplementFolderChange = true;
                if (this.SongFolder.Text == gf.FolderName[gf.EditorItemNewFolder])
                {
                    this.SongFolder_Change();
                }
                else
                {
                    this.SongFolder.Text = gf.FolderName[gf.EditorItemNewFolder];
                }
                gf.EditorItemTitleChanged = false;
            }
            for (int i = 0; i < this.SongsList.Items.Count; i++)
            {
                if (gf.Mid(this.SongsList.Items[i].SubItems[1].Text, 1) == gf.EditorItemID.ToString())
                {
                    if (gf.EditorItemTitleChanged)
                    {
                        this.SongsList.Items[i].SubItems[0].Text = gf.EditorItemTitle;
                    }
                    this.SongsList.Items[i].Selected = true;                    
                    this.SongsList.EnsureVisible(i);
                    break;
                }
            }
            if (gf.EditorItemTitleChanged)
            {
                for (int i = 0; i < this.WorshipListItems.Items.Count; i++)
                {
                    if (gf.Mid(this.WorshipListItems.Items[i].SubItems[1].Text, 2) == gf.EditorItemID.ToString())
                    {
                        this.WorshipListItems.Items[i].SubItems[0].Text = gf.EditorItemTitle;
                        this.SaveWorshipList();
                        break;
                    }
                }
                for (int i = 0; i < this.PraiseBookItems.Items.Count; i++)
                {
                    if (gf.Mid(this.PraiseBookItems.Items[i].SubItems[3].Text, 2) == gf.EditorItemID.ToString())
                    {
                        this.PraiseBookList_Change();
                        break;
                    }
                }
            }
            gf.EditorItemNew = false;
            gf.EditorItemFolderChanged = false;
            gf.EditorItemTitleChanged = false;
        }
        private void Ind_Head_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Ind_Head, e.ClickedItem.Name, this.Ind_HeadNoTitles, this.Ind_HeadAllTitles, this.Ind_HeadFirstScreen);
            gf.PreviewItem.Format.ShowSongHeadings = gf.ObjToInt(this.Ind_Head.Tag);
            this.UpdateFormatData(false);
        }
        private void Def_Head_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Def_Head, e.ClickedItem.Name, this.Def_HeadNoTitles, this.Def_HeadAllTitles, this.Def_HeadFirstScreen);
            gf.ShowSongHeadings = gf.ObjToInt(this.Def_Head.Tag);
            this.ApplyDefaultData(false);
        }
        private void Ind_HeadAlign_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Ind_HeadAlign, e.ClickedItem.Name, this.Ind_HeadAlignAsR1, this.Ind_HeadAlignAsR2, this.Ind_HeadAlignLeft, this.Ind_HeadAlignCentre, this.Ind_HeadAlignRight);
            gf.PreviewItem.Format.ShowSongHeadingsAlign = gf.ObjToInt(this.Ind_HeadAlign.Tag);
            this.UpdateFormatData(false);
        }
        private void Def_HeadAlign_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.Def_HeadAlign, e.ClickedItem.Name, this.Def_HeadAlignAsR1, this.Def_HeadAlignAsR2, this.Def_HeadAlignLeft, this.Def_HeadAlignCentre, this.Def_HeadAlignRight);
            gf.ShowSongHeadingsAlign = gf.ObjToInt(this.Def_HeadAlign.Tag);
            this.ApplyDefaultData(false);
        }
        private bool DShowPlayerPresent()
        {
            return File.Exists(Path.Combine(Environment.SystemDirectory, "dpnhpast.dll"));
        }
        private void ApplyPreviewArea_Setup(int InMode)
        {
            try
            {
                this.ApplyLyricsRichTextBoxFont(InMode);
                this.BibleText.Font = new Font(this.BibleText.Font.Name, (float)gf.PreviewArea_FontSize, this.BibleText.Font.Style);
                this.SongsList.Font = new Font(this.SongsList.Font.Name, (float)gf.PreviewArea_FontSize, this.SongsList.Font.Style);
                this.InfoScreenList.Font = new Font(this.InfoScreenList.Font.Name, (float)gf.PreviewArea_FontSize, this.InfoScreenList.Font.Style);
                this.WorshipListItems.Font = new Font(this.WorshipListItems.Font.Name, (float)gf.PreviewArea_FontSize, this.WorshipListItems.Font.Style);
                this.PraiseBookItems.Font = new Font(this.PraiseBookItems.Font.Name, (float)gf.PreviewArea_FontSize, this.PraiseBookItems.Font.Style);
                this.PreviewInfo.Font = new Font(this.PreviewInfo.Font.Name, (float)gf.PreviewArea_FontSize, this.PreviewInfo.Font.Style);
            }
            catch
            {
            }
        }
        private void ApplyLyricsRichTextBoxFont(int InMode)
        {
            if (InMode == 0 || InMode == 2)
            {
                for (int i = 1; i <= gf.PreviewItem.TotalSlides; i++)
                {
                    if (this.Lyrics_PreviewBox[i] != null)
                    {
                        this.Lyrics_PreviewBox[i].Font = new Font(this.flowLayoutPreviewLyrics.Font.Name, (float)gf.PreviewArea_FontSize, this.flowLayoutPreviewLyrics.Font.Style);
                        this.Lyrics_PreviewBox[i].BorderStyle = (gf.PreviewArea_LineBetweenScreens ? BorderStyle.FixedSingle : BorderStyle.None);
                    }
                }
            }
            this.FormatLyricsContainers(gf.PreviewItem);
            this.ResizePreviewRichTextBox();
            if (InMode == 1 || InMode == 2)
            {
                for (int i = 1; i <= gf.OutputItem.TotalSlides; i++)
                {
                    if (this.Lyrics_OutputBox[i] != null)
                    {
                        this.Lyrics_OutputBox[i].Font = new Font(this.flowLayoutOutputLyrics.Font.Name, (float)gf.PreviewArea_FontSize, this.flowLayoutOutputLyrics.Font.Style);
                        this.Lyrics_OutputBox[i].BorderStyle = (gf.PreviewArea_LineBetweenScreens ? BorderStyle.FixedSingle : BorderStyle.None);
                    }
                }
                this.FormatLyricsContainers(gf.OutputItem);
                this.ResizeOutputRichTextBox();
            }
        }
        private void GenerateIndexReport()
        {
            if (this.GenerateListingFileName == "")
            {
                this.GenerateListingFileName = "Index Of Database Items.rtf";
            }
            if (this.GenerateListingDir == "")
            {
                this.GenerateListingDir = gf.RootEasiSlidesDir + "Documents\\";
            }
            string text = this.SaveListingOfFolder(ref this.GenerateListingFileName, ref this.GenerateListingDir);
            if (Path.GetExtension(text) == ".rtf")
            {
                this.GenerateIndexReportRTF(text);
            }
            else
            {
                if (Path.GetExtension(text) == ".txt")
                {
                    this.GenerateIndexReportTabText(text);
                }
                else
                {
                    if (text != "")
                    {
                        MessageBox.Show("You haven't specified a supported Listing File Type.  Please retry and select a proper file type");
                    }
                }
            }
        }
        private void GenerateIndexReportRTF(string OutputFileName)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;
                StreamWriter streamWriter = new StreamWriter(OutputFileName, false, Encoding.Default);
                try
                {
                    gf.RTFNewLine = "\\b0\\i0\\ulnone\\par ";
                    gf.RTFIndent[0] = "\\pard\\tx1200\\tx3500\\tx8200\\tx9000 ";
                    string value = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Microsoft Sans Serif;}}\\viewkind1\\uc1\\pard\\f0\\fs24\\margr600\\margl1000\\margt900\\margb1000\\cols2\\colno1\\colw4650\\colsr750\\colno2\\colw4650 ";
                    Recordset tableRecordSet = gf.GetTableRecordSet(gf.ConnectStringMainDB, "SONG");
                    tableRecordSet.Index = "PrimaryKey";
                    streamWriter.Write(value);
                    streamWriter.Write(gf.UnicodeToAscii_RTF("\\b1\\ul " + this.SongFolder.Text + "\\b0\\ulnone " + gf.RTFNewLine));
                    streamWriter.Write(gf.UnicodeToAscii_RTF(gf.RTFNewLine));
                    for (int i = 0; i < this.SongsList.Items.Count; i++)
                    {
                        streamWriter.Write(gf.UnicodeToAscii_RTF(gf.RTFIndent[0] + gf.RemoveMusicSym(this.SongsList.Items[i].SubItems[0].Text) + gf.RTFNewLine));
                    }
                    streamWriter.Write(gf.UnicodeToAscii_RTF(gf.RTFNewLine));
                    streamWriter.Write(gf.UnicodeToAscii_RTF("(Total: " + this.SongsList.Items.Count.ToString() + " items)" + gf.RTFNewLine));
                    streamWriter.Write("}");
                    streamWriter.Flush();
                    streamWriter.Close();
                    gf.RunProcess(OutputFileName);
                }
                catch
                {
                    streamWriter.Flush();
                    streamWriter.Close();
                    MessageBox.Show("Error generating listing " + OutputFileName + ". Document might be in use.");
                }
            }
            catch
            {
            }
            this.Cursor = Cursors.Default;
        }
        private void GenerateIndexReportTabText(string OutputFileName)
        {
            this.Cursor = Cursors.WaitCursor;
            StringBuilder stringBuilder = new StringBuilder();
            try
            {
                Recordset tableRecordSet = gf.GetTableRecordSet(gf.ConnectStringMainDB, "SONG");
                tableRecordSet.Index = "PrimaryKey";
                stringBuilder.Append("Song Title\tWriter\tMP\tSF\tTS\r\n");
                for (int i = 0; i < this.SongsList.Items.Count; i++)
                {
                    string key = gf.Mid(this.SongsList.Items[i].SubItems[1].Text, 1);
                    tableRecordSet.Seek("=", key, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def);
                    string text;
                    if (!tableRecordSet.NoMatch)
                    {
                        string dataString = gf.GetDataString(tableRecordSet, "BOOK_REFERENCE");
                        string dataString2 = gf.GetDataString(tableRecordSet, "Writer");
                        string str = "";
                        text = "\t" + dataString2;
                        int num = dataString.IndexOf("MP");
                        if (num >= 0)
                        {
                            int num2 = num + 2;
                            int num3 = dataString.IndexOfAny(gf.ReferenceAlertPickSeparator.ToCharArray(), num2);
                            num3 = ((num3 >= 0) ? num3 : dataString.Length);
                            str = gf.Mid(dataString, num2, num3 - num2);
                        }
                        text = text + "\t" + str;
                        str = "";
                        num = dataString.IndexOf("SF");
                        if (num >= 0)
                        {
                            int num2 = num + 2;
                            int num3 = dataString.IndexOfAny(gf.ReferenceAlertPickSeparator.ToCharArray(), num2);
                            num3 = ((num3 >= 0) ? num3 : dataString.Length);
                            str = gf.Mid(dataString, num2, num3 - num2);
                        }
                        text = text + "\t" + str;
                        str = "";
                        num = dataString.IndexOf("TS");
                        if (num >= 0)
                        {
                            int num2 = num + 2;
                            int num3 = dataString.IndexOfAny(gf.ReferenceAlertPickSeparator.ToCharArray(), num2);
                            num3 = ((num3 >= 0) ? num3 : dataString.Length);
                            str = gf.Mid(dataString, num2, num3 - num2);
                        }
                        text = text + "\t" + str;
                    }
                    else
                    {
                        text = "\t\t\t\t";
                    }
                    stringBuilder.Append(gf.RemoveMusicSym(this.SongsList.Items[i].SubItems[0].Text) + text + "\r\n");
                }
                gf.CreateNewFile(OutputFileName, gf.FileContentsType.DoubleByte, stringBuilder.ToString());
                gf.RunProcess(OutputFileName);
            }
            catch
            {
            }
            this.Cursor = Cursors.Default;
        }
        private string SaveListingOfFolder(ref string InFileName, ref string InitDirectory)
        {
            this.saveFileDialog1.Filter = "Rich Text Document (*.rtf)|*.rtf|Tab delimted Text File (*.txt)|*.txt";
            this.saveFileDialog1.Title = "Listing of Folder";
            this.saveFileDialog1.InitialDirectory = InitDirectory;
            this.saveFileDialog1.OverwritePrompt = true;
            this.saveFileDialog1.AddExtension = true;
            string extension = Path.GetExtension(InFileName);
            this.saveFileDialog1.FileName = gf.GetDisplayNameOnly(ref InFileName, false, false);
            this.saveFileDialog1.DefaultExt = ((extension.ToLower() == ".txt") ? ".txt" : ".rtf");
            string result;
            if (this.saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                InFileName = Path.GetFileName(this.saveFileDialog1.FileName);
                InitDirectory = Path.GetDirectoryName(this.saveFileDialog1.FileName);
                result = this.saveFileDialog1.FileName;
            }
            else
            {
                result = "";
            }
            return result;
        }
        private void OldGenerateIndexReport()
        {
            string text = gf.RootEasiSlidesDir + "Documents\\Index Of Database Items.rtf";
            if (MessageBox.Show("This will overwrite the previous index document '" + text + "'. Press OK to proceed or Cancel to quit.", "", MessageBoxButtons.OKCancel) == DialogResult.OK)
            {
                try
                {
                    this.Cursor = Cursors.WaitCursor;
                    StreamWriter streamWriter = new StreamWriter(text, false, Encoding.Default);
                    try
                    {
                        gf.RTFNewLine = "\\b0\\i0\\ulnone\\par ";
                        gf.RTFIndent[0] = "\\pard\\tx1200\\tx3500\\tx8200\\tx9000 ";
                        string value = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Microsoft Sans Serif;}}\\viewkind1\\uc1\\pard\\f0\\fs24\\margr600\\margl1000\\margt900\\margb1000\\cols2\\colno1\\colw4650\\colsr750\\colno2\\colw4650 ";
                        Recordset tableRecordSet = gf.GetTableRecordSet(gf.ConnectStringMainDB, "SONG");
                        tableRecordSet.Index = "PrimaryKey";
                        streamWriter.Write(value);
                        streamWriter.Write(gf.UnicodeToAscii_RTF("\\b1\\ul " + this.SongFolder.Text + "\\b0\\ulnone " + gf.RTFNewLine));
                        streamWriter.Write(gf.UnicodeToAscii_RTF(gf.RTFNewLine));
                        for (int i = 0; i < this.SongsList.Items.Count; i++)
                        {
                            string key = gf.Mid(this.SongsList.Items[i].SubItems[1].Text, 1);
                            string text2 = "";
                            tableRecordSet.Seek("=", key, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def, gf.def);
                            if (!tableRecordSet.NoMatch)
                            {
                                text2 = gf.GetDataString(tableRecordSet, "BOOK_REFERENCE");
                                int num = text2.IndexOf("TS");
                                if (num >= 0)
                                {
                                    int num2 = num + 2;
                                    int num3 = text2.IndexOfAny(gf.ReferenceAlertPickSeparator.ToCharArray(), num2);
                                    num3 = ((num3 >= 0) ? num3 : text2.Length);
                                    text2 = gf.Mid(text2, num2, num3 - num2);
                                }
                                else
                                {
                                    text2 = "";
                                }
                            }
                            streamWriter.Write(gf.UnicodeToAscii_RTF(string.Concat(new string[]
							{
								gf.RTFIndent[0],
								gf.RemoveMusicSym(this.SongsList.Items[i].SubItems[0].Text),
								";",
								text2,
								";",
								gf.RTFNewLine
							})));
                        }
                        streamWriter.Write(gf.UnicodeToAscii_RTF(gf.RTFNewLine));
                        streamWriter.Write(gf.UnicodeToAscii_RTF("(Total: " + this.SongsList.Items.Count.ToString() + " items)" + gf.RTFNewLine));
                        streamWriter.Write("}");
                        streamWriter.Flush();
                        streamWriter.Close();
                        gf.RunProcess(text);
                    }
                    catch
                    {
                        streamWriter.Flush();
                        streamWriter.Close();
                        MessageBox.Show("Error generating listing " + text + ". Document might be in use.");
                    }
                }
                catch
                {
                }
                this.Cursor = Cursors.Default;
            }
        }
        private void TimerToFront_Tick(object sender, EventArgs e)
        {
            if (this.LoadRepaintCount > 8)
            {
                this.TimerToFront.Stop();
                base.Focus();
                base.TopMost = false;
            }
            else
            {
                this.LoadRepaintCount++;
            }
        }
        private string RemoteControlLiveShow(FrmMain.LiveShowAction InAction)
        {
            return this.RemoteControlLiveShow(InAction, gf.KeyDirection.Refresh);
        }
        private string RemoteControlLiveShow(FrmMain.LiveShowAction InAction, gf.KeyDirection InDirection)
        {
            string result;
            try
            {
                switch (InAction)
                {
                    case FrmMain.LiveShowAction.Remote_SongChanged:
                        this.LiveShow.Remote_SongChanged(false);
                        break;
                    case FrmMain.LiveShowAction.Remote_SlideChanged:
                        this.LiveShow.Remote_SlideChanged((int)InDirection);
                        break;
                    case FrmMain.LiveShowAction.Remote_SongJumpTo:
                        this.LiveShow.Remote_SongJumpTo();
                        break;
                    case FrmMain.LiveShowAction.Remote_MessageAlertRequested:
                        this.LiveShow.Remote_MessageAlertRequested();
                        break;
                    case FrmMain.LiveShowAction.Remote_ParentalAlertRequested:
                        this.LiveShow.Remote_ParentalAlertRequested();
                        break;
                    case FrmMain.LiveShowAction.Remote_ReferenceAlertShow:
                        this.LiveShow.Remote_ReferenceAlertRequested(true);
                        break;
                    case FrmMain.LiveShowAction.Remote_ReferenceAlertHide:
                        this.LiveShow.Remote_ReferenceAlertRequested(false);
                        break;
                    case FrmMain.LiveShowAction.Remote_LyricsAlertShow:
                        this.LiveShow.Remote_LyricsAlertRequested();
                        break;
                    case FrmMain.LiveShowAction.Remote_FormatChanged:
                        this.LiveShow.Remote_FormatChanged();
                        break;
                    case FrmMain.LiveShowAction.Remote_PanelChanged:
                        this.LiveShow.Remote_PanelChanged();
                        break;
                    case FrmMain.LiveShowAction.Remote_DefaultBackgroundChanged:
                        this.LiveShow.Remote_DefaultBackgroundChanged();
                        break;
                    case FrmMain.LiveShowAction.Remote_BackgroundChanged:
                        this.LiveShow.Remote_BackgroundChanged();
                        break;
                    case FrmMain.LiveShowAction.Remote_MoveToItemChanged:
                        this.LiveShow.Remote_MoveToItemChanged();
                        break;
                    case FrmMain.LiveShowAction.Remote_LiveBlackClearChanged:
                        this.LiveShow.Remote_LiveBlackClearChanged();
                        break;
                    case FrmMain.LiveShowAction.Remote_ChineseChanged:
                        this.LiveShow.Remote_ChineseChanged();
                        break;
                    case FrmMain.LiveShowAction.Remote_WorshipListChanged:
                        this.LiveShow.Remote_WorshipListChanged();
                        break;
                    case FrmMain.LiveShowAction.Remote_LiveCamStartStop:
                        this.LiveShow.Remote_LiveCamStartStop();
                        break;
                    case FrmMain.LiveShowAction.Remote_LiveCamUpdate:
                        this.LiveShow.Remote_LiveCamUpdate();
                        break;
                    case FrmMain.LiveShowAction.Remote_RefreshMediaWindow:
                        this.LiveShow.Remote_RefreshMediaWindow();
                        break;
                    case FrmMain.LiveShowAction.Remote_RotateOnOffChanged:
                        this.LiveShow.Remote_RotateOnOffChanged();
                        break;
                    case FrmMain.LiveShowAction.Remote_GetMediaTimings:
                        result = this.LiveShow.Remote_GetMediaTimings();
                        return result;
                    case FrmMain.LiveShowAction.Remote_MediaItemPausePlay:
                        result = this.LiveShow.Remote_MediaItemPausePlay();
                        return result;
                }
            }
            catch
            {
                try
                {
                    this.LiveShow = new FrmLaunchShow();
                    this.LiveShow.OnMessage += new FrmLaunchShow.Message(this.LiveShow_OnMessage);
                    this.RemoteControlLiveShow(InAction);
                }
                catch
                {
                }
            }
            result = "";
            return result;
        }
        private void InfoScreenFolder_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.ShowInfoScreenFolderContents();
        }
        private void ShowInfoScreenFolderContents()
        {
            if (this.InfoScreenFolder.Items.Count > 0)
            {
                this.Cursor = Cursors.WaitCursor;
                ListBox listBox = new ListBox();
                listBox.Items.Clear();
                listBox.Sorted = false;
                ListViewItem listViewItem = new ListViewItem();
                try
                {
                    string path = gf.InfoScreenGroups[this.InfoScreenFolder.SelectedIndex, 1];
                    string[] files = Directory.GetFiles(path, "*.esi");
                    string[] array = files;
                    for (int i = 0; i < array.Length; i++)
                    {
                        string text = array[i];
                        if (text != "")
                        {
                            listBox.Items.Add(text);
                        }
                    }
                }
                catch
                {
                }
                listBox.Sorted = true;
                this.InfoScreenList.Items.Clear();
                string text2 = "";
                for (int j = 0; j < listBox.Items.Count; j++)
                {
                    text2 = listBox.Items[j].ToString();
                    listViewItem = this.InfoScreenList.Items.Add(gf.GetDisplayNameOnly(ref text2, false, false));
                    listViewItem.SubItems.Add("I" + listBox.Items[j]);
                }
                this.SetInfoScreenListColWidth();
                listBox.Dispose();
                this.Cursor = Cursors.Default;
            }
        }
        private void InfoScreenList_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Control && e.KeyCode == Keys.A)
            {
                this.ListViewSelectItems(this.InfoScreenList, true);
            }
            else
            {
                if (e.Control && e.KeyCode == Keys.C)
                {
                    this.EF_Copy_Clicked();
                }
                else
                {
                    if (e.KeyCode == Keys.Delete)
                    {
                        this.EF_Delete_Clicked();
                        this.InfoScreenList.Focus();
                    }
                    else
                    {
                        this.InfoScreenListIndexChanged(1, false);
                        this.InfoScreenList.Focus();
                    }
                }
            }
        }
        private void InfoScreenList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (gf.EasiSlidesMode == gf.UsageMode.Worship && gf.GetSelectedIndex(this.InfoScreenList) >= 0)
            {
                this.AddToWorshipList();
            }
        }
        private void InfoScreenList_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                this.InfoScreenListIndexChanged();
            }
            else
            {
                if (e.Button == MouseButtons.Right)
                {
                    ListViewItem itemAt = this.InfoScreenList.GetItemAt(e.X, e.Y);
                    string text = "";
                    if (itemAt != null)
                    {
                        itemAt.Selected = true;
                        this.InfoScreenListIndexChanged();
                    }
                    gf.GetSelectedIndex(this.InfoScreenList, ref text);
                }
            }
            this.InfoScreenList.Focus();
        }
        private void InfoScreenListIndexChanged()
        {
            this.InfoScreenListIndexChanged(1);
        }
        private void InfoScreenListIndexChanged(int StartingSlide)
        {
            this.InfoScreenListIndexChanged(StartingSlide, true);
        }
        private void InfoScreenListIndexChanged(int StartingSlide, bool ScrollToCaret)
        {
            int selectedIndex = gf.GetSelectedIndex(this.InfoScreenList);
            if (selectedIndex >= 0)
            {
                gf.PreviewItem.Source = gf.ItemSource.ExternalFileInfoScreen;
                string text = this.InfoScreenList.Items[selectedIndex].SubItems[1].Text;
                string text2 = this.InfoScreenList.Items[selectedIndex].SubItems[0].Text;
                gf.PreviewItem.InMainItemText = text2;
                gf.PreviewItem.InSubItemItem1Text = text;
                gf.PreviewItem.CurItemNo = 0;
                this.LoadItem(ref gf.PreviewItem, text, "", StartingSlide, ref text2, ScrollToCaret);
                this.UpdateDisplayPanelFields();
            }
            else
            {
                gf.PreviewItem.Type = "";
                gf.PreviewItem.Title = "";
                gf.PreviewItem.ItemID = "";
                gf.PreviewItem.CurItemNo = 0;
                gf.LoadIndividualFormatData(ref gf.PreviewItem, "");
                this.AllowIndividualFormat(false);
                this.UpdateFormatFields();
                this.BuildVerseButtons(gf.PreviewItem);
                this.DisplayLyrics(gf.PreviewItem, 0, true);
                this.UpdateDisplayPanelFields();
            }
        }
        private void InfoScreen_OpenFolder_Click(object sender, EventArgs e)
        {
            string text = gf.InfoScreenGroups[this.InfoScreenFolder.SelectedIndex, 1];
            if (gf.ValidateDir(text, true))
            {
                gf.RunProcess(text);
            }
        }
        private void EF_New_Clicked()
        {
            this.ShowInfoScreen("");
        }
        private void EF_Edit_Clicked()
        {
            if (this.InfoScreenList.Items.Count > 0)
            {
                if (this.InfoScreenList.SelectedItems.Count > 0)
                {
                    this.Edit_Item(this.InfoScreenList.SelectedItems[0].SubItems[1].Text);
                }
                else
                {
                    MessageBox.Show("Please select ONE InfoScreen to edit");
                }
            }
        }
        private void EF_Copy_Clicked()
        {
            this.CopyExternalItems(this.InfoScreenList, "I");
        }
        private void EF_Move_Clicked()
        {
            this.MoveExternalItems(this.InfoScreenList, "I");
        }
        private void EF_Delete_Clicked()
        {
            this.RemoveExternalItems(this.InfoScreenList, "I");
        }
        private void CopyExternalItems(ListView InListView, string InFileSymbol)
        {
            if (InListView.SelectedItems.Count > 0)
            {
                gf.SelectedItemsCount = InListView.SelectedItems.Count;
                gf.ExternalMoveFolder = -1;
                gf.ExternalCopyFolder = 1;
                gf.ExternalMoveCopyType = InFileSymbol;
                FrmCopyMoveExternal frmCopyMoveExternal = new FrmCopyMoveExternal();
                if (frmCopyMoveExternal.ShowDialog() == DialogResult.OK)
                {
                    if (gf.ExternalCopyFolder >= 0)
                    {
                        string[] array = new string[30000];
                        array[0] = "0";
                        ListView listView = new ListView();
                        ListViewItem listViewItem = new ListViewItem();
                        string text = "";
                        for (int i = 0; i < InListView.SelectedItems.Count; i++)
                        {
                            if (InFileSymbol != null)
                            {
                                if (!(InFileSymbol == "I"))
                                {
                                    if (InFileSymbol == "P")
                                    {
                                        text = gf.CopyExternalFile(gf.Mid(InListView.SelectedItems[i].SubItems[1].Text, 1), gf.PowerpointGroups[gf.ExternalCopyFolder, 1]);
                                    }
                                }
                                else
                                {
                                    text = gf.CopyExternalFile(gf.Mid(InListView.SelectedItems[i].SubItems[1].Text, 1), gf.InfoScreenGroups[gf.ExternalCopyFolder, 1]);
                                }
                            }
                            if (text != "")
                            {
                                listViewItem = listView.Items.Add(gf.GetDisplayNameOnly(ref text, false));
                                array[0] = Convert.ToString(gf.StringToInt(array[0]) + 1);
                                array[gf.StringToInt(array[0])] = gf.GetDisplayNameOnly(ref text, false);
                            }
                        }
                        if (InFileSymbol == "I")
                        {
                            this.HighlightCopyMoveExternalItems(this.InfoScreenList, gf.ExternalCopyFolder, array, InFileSymbol);
                        }
                        else
                        {
                            this.HighlightCopyMoveExternalItems(this.PowerpointList, gf.ExternalCopyFolder, array, InFileSymbol);
                        }
                    }
                    else
                    {
                        if (InFileSymbol == "I")
                        {
                            gf.ExternalCopyFolder = -1 * gf.ExternalCopyFolder;
                            if (gf.ExternalCopyFolder <= 0)
                            {
                                gf.ExternalCopyFolder = 1;
                            }
                            int[] array2 = new int[30000];
                            array2[0] = 0;
                            ListView listView = new ListView();
                            ListViewItem listViewItem = new ListViewItem();
                            string text = "";
                            string[] array3 = new string[255];
                            for (int i = 0; i < InListView.SelectedItems.Count; i++)
                            {
                                text = gf.Mid(InListView.SelectedItems[i].SubItems[1].Text, 1);
                                if (text != "")
                                {
                                    gf.LoadInfoFile(text, ref gf.TempItem1, ref array3);
                                    if (gf.Trim(gf.TempItem1.Title) == "")
                                    {
                                        gf.TempItem1.Title = gf.GetDisplayNameOnly(ref text, false);
                                    }
                                    gf.TempItem1.FolderNo = gf.ExternalCopyFolder;
                                    int num = gf.InsertItemIntoDatabase(gf.ConnectStringMainDB, gf.TempItem1);
                                    if (num > 0)
                                    {
                                        array2[0]++;
                                        array2[array2[0]] = num;
                                    }
                                }
                            }
                            if (array2[0] > 0)
                            {
                                this.HighlightCopyMoveItems(gf.ExternalCopyFolder, ref array2);
                            }
                        }
                    }
                }
            }
        }
        private void MoveExternalItems(ListView InListView, string InFileSymbol)
        {
            if (InListView.SelectedItems.Count > 0)
            {
                gf.SelectedItemsCount = InListView.SelectedItems.Count;
                gf.ExternalMoveFolder = 1;
                gf.ExternalCopyFolder = -1;
                gf.ExternalMoveCopyType = InFileSymbol;
                FrmCopyMoveExternal frmCopyMoveExternal = new FrmCopyMoveExternal();
                if (frmCopyMoveExternal.ShowDialog() == DialogResult.OK)
                {
                    if (gf.ExternalMoveFolder != this.InfoScreenFolder.SelectedIndex)
                    {
                        if (gf.ExternalMoveFolder >= 0 && gf.ExternalMoveFolder != this.InfoScreenFolder.SelectedIndex)
                        {
                            string[] array = new string[30000];
                            array[0] = "0";
                            ListView listView = new ListView();
                            ListViewItem listViewItem = new ListViewItem();
                            string a = "";
                            for (int i = 0; i < InListView.SelectedItems.Count; i++)
                            {
                                if (InFileSymbol != null)
                                {
                                    if (!(InFileSymbol == "I"))
                                    {
                                        if (InFileSymbol == "P")
                                        {
                                            a = gf.MoveExternalFile(gf.Mid(InListView.SelectedItems[i].SubItems[1].Text, 1), gf.PowerpointGroups[gf.ExternalMoveFolder, 1]);
                                        }
                                    }
                                    else
                                    {
                                        a = gf.MoveExternalFile(gf.Mid(InListView.SelectedItems[i].SubItems[1].Text, 1), gf.InfoScreenGroups[gf.ExternalMoveFolder, 1]);
                                    }
                                }
                                if (a != "")
                                {
                                    listViewItem = listView.Items.Add(gf.GetDisplayNameOnly(ref a, false));
                                    array[0] = Convert.ToString(gf.StringToInt(array[0]) + 1);
                                    array[gf.StringToInt(array[0])] = gf.GetDisplayNameOnly(ref a, false);
                                }
                            }
                            if (InFileSymbol == "I")
                            {
                                this.HighlightCopyMoveExternalItems(this.InfoScreenList, gf.ExternalMoveFolder, array, InFileSymbol);
                            }
                            else
                            {
                                this.HighlightCopyMoveExternalItems(this.PowerpointList, gf.ExternalMoveFolder, array, InFileSymbol);
                            }
                        }
                    }
                }
            }
        }
        private void RemoveExternalItems(ListView InListView, string InFileSymbol)
        {
            if (InListView.SelectedItems.Count > 0)
            {
                string str;
                if (InFileSymbol == "I")
                {
                    str = "InfoScreen(s)";
                }
                else
                {
                    if (!(InFileSymbol == "P"))
                    {
                        return;
                    }
                    str = "Powerpint File(s)";
                }
                if (MessageBox.Show("Delete Selected " + str + " to Windows Recycle Bin?", "Delete " + str, MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    string b = "";
                    if (gf.OutputItem.Type == InFileSymbol)
                    {
                        b = gf.OutputItem.ItemID;
                        gf.GetDisplayNameOnly(ref b, true);
                    }
                    ListView.SelectedListViewItemCollection selectedItems = InListView.SelectedItems;
                    int index = selectedItems[selectedItems.Count - 1].Index;
                    for (int i = selectedItems.Count - 1; i >= 0; i--)
                    {
                        if (selectedItems[i].Text != b)
                        {
                            try
                            {
                                if (gf.RecycleBin(gf.Mid(selectedItems[i].SubItems[1].Text, 1)))
                                {
                                    selectedItems[i].Remove();
                                }
                            }
                            catch
                            {
                            }
                        }
                    }
                    if (InListView.Items.Count > index)
                    {
                        if (index >= 0)
                        {
                            InListView.Items[index].Selected = true;
                        }
                    }
                    else
                    {
                        if (InListView.Items.Count > 0)
                        {
                            if (index - 1 >= 0 && index <= InListView.Items.Count)
                            {
                                InListView.Items[index - 1].Selected = true;
                            }
                            else
                            {
                                InListView.Items[InListView.Items.Count - 1].Selected = true;
                            }
                        }
                    }
                    if (InFileSymbol == "I")
                    {
                        this.InfoScreenListIndexChanged();
                    }
                    else
                    {
                        if (InFileSymbol == "P")
                        {
                            this.PowerpointListIndexChanged();
                        }
                    }
                }
            }
        }
        private void SetTabsVisibility()
        {
            this.SetOneTab(ref this.tabControlSource, this.tabPowerpoint, gf.UsePowerpointTab, this.tabFiles.Name);
            this.SetOneTab(ref this.tabControlSource, this.tabMedia, gf.UseMediaTab, this.tabImages.Name);
            this.panelOutputLM1.Visible = gf.ShowLyricsMonitorAlertBox;
            this.ResizeOutputBottomPanel();
        }
        private void SetOneTab(ref TabControl InTab, TabPage InTabPage, bool SetVisible, string InsertAfterTabName)
        {
            if (SetVisible)
            {
                if (!InTab.TabPages.Contains(InTabPage))
                {
                    int index = InTab.TabPages.Count;
                    for (int i = 0; i < InTab.TabPages.Count; i++)
                    {
                        if (InTab.TabPages[i].Name.ToLower() == InsertAfterTabName.ToLower())
                        {
                            index = i;
                        }
                    }
                    InTab.TabPages.Insert(index, InTabPage);
                }
            }
            else
            {
                if (InTab.TabPages.Contains(InTabPage))
                {
                    InTab.TabPages.Remove(InTabPage);
                }
            }
        }
        private void PowerpointListIndexChanged()
        {
            this.PowerpointListIndexChanged(1);
        }
        private void PowerpointListIndexChanged(int StartingSlide)
        {
            this.PowerpointListIndexChanged(StartingSlide, true);
        }
        private void PowerpointListIndexChanged(int StartingSlide, bool ScrollToCaret)
        {
            int selectedIndex = gf.GetSelectedIndex(this.PowerpointList);
            if (selectedIndex >= 0)
            {
                gf.PreviewItem.Source = gf.ItemSource.ExternalFilePowerpoint;
                string text = this.PowerpointList.Items[selectedIndex].SubItems[1].Text;
                string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(gf.Right(text, text.Length - 1));
                gf.PreviewItem.InMainItemText = fileNameWithoutExtension;
                gf.PreviewItem.InSubItemItem1Text = text;
                gf.PreviewItem.CurItemNo = 0;
                this.LoadItem(ref gf.PreviewItem, text, "", 1, ref fileNameWithoutExtension, false);
                this.UpdateDisplayPanelFields();
            }
            else
            {
                gf.PreviewItem.Type = "";
                gf.PreviewItem.Title = "";
                gf.PreviewItem.ItemID = "";
                gf.PreviewItem.CurItemNo = 0;
                gf.LoadIndividualFormatData(ref gf.PreviewItem, "");
                this.AllowIndividualFormat(false);
                this.UpdateFormatFields();
                this.BuildVerseButtons(gf.PreviewItem);
                this.DisplayLyrics(gf.PreviewItem, 0, true);
                this.UpdateDisplayPanelFields();
            }
        }
        private void PP_Style_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            gf.AssignDropDownItem(ref this.PP_ListType, e.ClickedItem.Name, this.PP_ListStyle, this.PP_PreviewStyle);
            gf.PowerpointListingStyle = gf.ObjToInt(this.PP_ListType.Tag);
            this.PowerpointStyle_Changed(false);
        }
        private void PowerpointStyle_Changed(bool RebuildPowerpointFolders)
        {
            this.PP_OpenFolder.ToolTipText = "Open Powerpoint Folder";
            if (gf.PowerpointListingStyle == 0)
            {
                this.PowerpointList.Visible = true;
                this.flowLayoutExternalPowerPoint.Visible = false;
            }
            else
            {
                this.PowerpointList.Visible = false;
                this.flowLayoutExternalPowerPoint.Visible = true;
            }
            if (RebuildPowerpointFolders)
            {
                this.BuildPowerpointFolderList();
            }
            else
            {
                this.ShowPowerpointFolderContents(gf.PowerpointListingStyle == 1);
            }
        }
        private void PP_Edit_Clicked()
        {
            if (this.PowerpointList.Items.Count > 0)
            {
                if (this.PowerpointList.SelectedItems.Count > 0)
                {
                    this.Edit_Item(this.PowerpointList.SelectedItems[0].SubItems[1].Text);
                }
                else
                {
                    MessageBox.Show("Please select ONE Powerpoint file to edit");
                }
            }
        }
        private void PP_Copy_Clicked()
        {
            if (gf.ObjToInt(this.PP_ListType.Tag) == 0)
            {
                this.CopyExternalItems(this.PowerpointList, "P");
            }
        }
        private void PP_Move_Clicked()
        {
            if (gf.ObjToInt(this.PP_ListType.Tag) == 0)
            {
                this.MoveExternalItems(this.PowerpointList, "P");
            }
        }
        private void PP_Delete_Clicked()
        {
            if (gf.ObjToInt(this.PP_ListType.Tag) == 0)
            {
                this.RemoveExternalItems(this.PowerpointList, "P");
            }
        }
        private void PP_Btn_Click(object sender, EventArgs e)
        {
            string text = gf.PowerpointGroups[this.PowerpointFolder.SelectedIndex, 1];
            if (gf.ValidateDir(text, true))
            {
                gf.RunProcess(text);
            }
        }
        private void CMenuFiles_SelectAll_Click(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
            {
                this.ListViewSelectItems(this.InfoScreenList, true);
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                {
                    this.ListViewSelectItems(this.PowerpointList, true);
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabMedia"))
                    {
                        this.ListViewSelectItems(this.MediaList, true);
                    }
                }
            }
        }
        private void CMenuFiles_UnselectAll_Click(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
            {
                this.ListViewSelectItems(this.InfoScreenList, false);
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                {
                    this.ListViewSelectItems(this.PowerpointList, false);
                }
                else
                {
                    if (this.IsSelectedTab(this.tabControlSource, "tabMedia"))
                    {
                        this.ListViewSelectItems(this.MediaList, false);
                    }
                }
            }
        }
        private void ListViewSelectItems(ListView InListView, bool SelectAll)
        {
            if (InListView.Items.Count > 0)
            {
                Cursor.Current = Cursors.WaitCursor;
                for (int i = 0; i <= InListView.Items.Count - 1; i++)
                {
                    InListView.Items[i].Selected = SelectAll;
                }
                InListView.Focus();
                Cursor.Current = Cursors.Default;
            }
        }
        private void CMenuFiles_AddShow_Click(object sender, EventArgs e)
        {
            if (this.AddToWorshipList())
            {
                int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                this.WorshipListItems.EnsureVisible(selectedIndex);
                gf.StartPresAt = selectedIndex + 1;
                this.PreviewItemToLive();
            }
        }
        private void CMenuFiles_Edit_Click(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
            {
                this.EF_Edit_Clicked();
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                {
                    this.PP_Edit_Clicked();
                }
            }
        }
        private void CMenuFiles_Copy_Click(object sender, EventArgs e)
        {
            if (this.IsSelectedTab(this.tabControlSource, "tabFiles"))
            {
                this.EF_Copy_Clicked();
            }
            else
            {
                if (this.IsSelectedTab(this.tabControlSource, "tabPowerpoint"))
                {
                    this.PP_Copy_Clicked();
                }
            }
        }
        private void CMenuFiles_Refresh_Click(object sender, EventArgs e)
        {
            this.RefreshItems();
        }
        private void PowerpointFolder_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.ShowPowerpointFolderContents(gf.PowerpointListingStyle == 1);
        }
        private void PowerpointList_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Control && e.KeyCode == Keys.A)
            {
                this.ListViewSelectItems(this.PowerpointList, true);
            }
            else
            {
                if (e.Control && e.KeyCode == Keys.C)
                {
                    this.PP_Copy_Clicked();
                }
                else
                {
                    if (e.KeyCode == Keys.Delete)
                    {
                        this.PP_Delete_Clicked();
                        this.PowerpointList.Focus();
                    }
                    else
                    {
                        this.PowerpointListIndexChanged(1, false);
                        this.PowerpointList.Focus();
                    }
                }
            }
        }
        private void PowerpointList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (gf.EasiSlidesMode == gf.UsageMode.Worship && gf.GetSelectedIndex(this.PowerpointList) >= 0)
            {
                this.AddToWorshipList();
            }
        }
        private void PowerpointList_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                this.PowerpointListIndexChanged();
            }
            else
            {
                if (e.Button == MouseButtons.Right)
                {
                    ListViewItem itemAt = this.PowerpointList.GetItemAt(e.X, e.Y);
                    string text = "";
                    if (itemAt != null)
                    {
                        itemAt.Selected = true;
                        this.PowerpointListIndexChanged();
                    }
                    gf.GetSelectedIndex(this.PowerpointList, ref text);
                }
            }
            this.PowerpointList.Focus();
        }
        private void MediaFolder_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.ShowMediaFolderContents();
        }
        private void ShowMediaFolderContents()
        {
            if (this.MediaFolder.Items.Count > 0)
            {
                this.Cursor = Cursors.WaitCursor;
                ListBox listBox = new ListBox();
                listBox.Items.Clear();
                listBox.Sorted = false;
                ListViewItem listViewItem = new ListViewItem();
                try
                {
                    string path = gf.MediaGroups[this.MediaFolder.SelectedIndex, 1];
                    for (int i = 0; i < gf.TotalMediaFileExt; i++)
                    {
                        try
                        {
                            string[] files = Directory.GetFiles(path, "*" + gf.MediaFileExtension[i, 0]);
                            string[] array = files;
                            for (int j = 0; j < array.Length; j++)
                            {
                                string text = array[j];
                                if (text != "")
                                {
                                    listBox.Items.Add(text);
                                }
                            }
                        }
                        catch
                        {
                        }
                    }
                }
                catch
                {
                }
                listBox.Sorted = true;
                this.MediaList.Items.Clear();
                string text2 = "";
                for (int i = 0; i < listBox.Items.Count; i++)
                {
                    text2 = listBox.Items[i].ToString();
                    listViewItem = this.MediaList.Items.Add(gf.GetDisplayNameOnly(ref text2, false, true));
                    listViewItem.SubItems.Add("M" + listBox.Items[i]);
                }
                this.SetMediaListColWidth();
                listBox.Dispose();
                this.Cursor = Cursors.Default;
            }
        }
        private void MediaListIndexChanged()
        {
            int selectedIndex = gf.GetSelectedIndex(this.MediaList);
            if (selectedIndex >= 0)
            {
                gf.PreviewItem.Source = gf.ItemSource.ExternalFileMedia;
                string text = this.MediaList.Items[selectedIndex].SubItems[1].Text;
                string text2 = this.MediaList.Items[selectedIndex].SubItems[0].Text;
                gf.GetDisplayNameOnly(ref text2, true);
                gf.PreviewItem.InMainItemText = text2;
                gf.PreviewItem.InSubItemItem1Text = text;
                gf.PreviewItem.CurItemNo = 0;
                this.LoadItem(ref gf.PreviewItem, text, "", 1, ref text2, false);
                this.UpdateDisplayPanelFields();
            }
            else
            {
                gf.PreviewItem.Type = "";
                gf.PreviewItem.Title = "";
                gf.PreviewItem.ItemID = "";
                gf.PreviewItem.CurItemNo = 0;
                gf.LoadIndividualFormatData(ref gf.PreviewItem, "");
                this.AllowIndividualFormat(false);
                this.UpdateFormatFields();
                this.BuildVerseButtons(gf.PreviewItem);
                this.DisplayLyrics(gf.PreviewItem, 0, true);
                this.UpdateDisplayPanelFields();
            }
        }
        private void MediaList_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Control && e.KeyCode == Keys.A)
            {
                this.ListViewSelectItems(this.MediaList, true);
            }
            else
            {
                if (!e.Control || e.KeyCode != Keys.C)
                {
                    if (e.KeyCode == Keys.Delete)
                    {
                        this.MediaList.Focus();
                    }
                    else
                    {
                        this.MediaListIndexChanged();
                        this.MediaList.Focus();
                    }
                }
            }
        }
        private void MediaList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (gf.EasiSlidesMode == gf.UsageMode.Worship && gf.GetSelectedIndex(this.MediaList) >= 0)
            {
                this.AddToWorshipList();
            }
        }
        private void MediaList_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                this.MediaListIndexChanged();
            }
            else
            {
                if (e.Button == MouseButtons.Right)
                {
                    ListViewItem itemAt = this.MediaList.GetItemAt(e.X, e.Y);
                    string text = "";
                    if (itemAt != null)
                    {
                        itemAt.Selected = true;
                        this.MediaListIndexChanged();
                    }
                    gf.GetSelectedIndex(this.MediaList, ref text);
                }
            }
            this.MediaList.Focus();
        }
        private void Media_OpenFolder_Click(object sender, EventArgs e)
        {
            string text = gf.MediaGroups[this.MediaFolder.SelectedIndex, 1];
            if (gf.ValidateDir(text, true))
            {
                gf.RunProcess(text);
            }
        }
        private void Image_OpenFolder_Click(object sender, EventArgs e)
        {
            string text = gf.PictureGroups[this.ImagesFolder.SelectedIndex, 1];
            if (gf.ValidateDir(text, true))
            {
                gf.RunProcess(text);
            }
        }
        private void Image_Import_Click(object sender, EventArgs e)
        {
            string str = gf.PictureGroups[this.ImagesFolder.SelectedIndex, 1];
            this.openFileDialog1.Filter = "Images (*.jpg,*jpeg,*.bmp,*.gif,*.ico)|*.jpg;*jpeg;*.bmp;*.gif;*.ico";
            this.openFileDialog1.Title = "Import An Image into folder: " + this.ImagesFolder.Text;
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName = this.openFileDialog1.FileName;
                try
                {
                    File.Copy(fileName, str + Path.GetFileName(fileName));
                    this.ShowPicturesFolderThumbs();
                }
                catch
                {
                    MessageBox.Show("Image File could not be imported. This is possibly because there is already a file with the same name in the folder.");
                }
            }
        }
        private void InfoScreen_Import_Click(object sender, EventArgs e)
        {
            string str = gf.InfoScreenGroups[this.InfoScreenFolder.SelectedIndex, 1];
            this.openFileDialog1.Filter = "InfoScreens (*.esi)|*.esi";
            this.openFileDialog1.Title = "Import An InfoScreen into folder: " + this.InfoScreenFolder.Text;
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName = this.openFileDialog1.FileName;
                try
                {
                    File.Copy(fileName, str + Path.GetFileName(fileName));
                    this.ShowInfoScreenFolderContents();
                    for (int i = 0; i < this.InfoScreenList.Items.Count; i++)
                    {
                        if (gf.Mid(this.InfoScreenList.Items[i].SubItems[1].Text, 1) == str + Path.GetFileName(fileName))
                        {
                            this.InfoScreenList.Items[i].Selected = true;
                            this.InfoScreenList.Items[i].EnsureVisible();
                            this.InfoScreenListIndexChanged();
                            break;
                        }
                    }
                }
                catch
                {
                    MessageBox.Show("InfoScreen could not be imported. This is possibly because there is already a file with the same name in the folder.");
                }
            }
        }
        private void PP_Import_Click(object sender, EventArgs e)
        {
            string str = gf.PowerpointGroups[this.PowerpointFolder.SelectedIndex, 1];
            this.openFileDialog1.Filter = "Powerpoint Files (*.ppt)|*.ppt";
            this.openFileDialog1.Title = "Import a Powerpoint File into folder: " + this.ImagesFolder.Text;
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName = this.openFileDialog1.FileName;
                try
                {
                    File.Copy(fileName, str + Path.GetFileName(fileName));
                    this.ShowPowerpointFolderContents(gf.PowerpointListingStyle == 1);
                    if (gf.PowerpointListingStyle == 0)
                    {
                        this.ShowPowerpointFolderContents(false);
                        for (int i = 0; i < this.PowerpointList.Items.Count; i++)
                        {
                            if (gf.Mid(this.PowerpointList.Items[i].SubItems[1].Text, 1) == str + Path.GetFileName(fileName))
                            {
                                this.PowerpointList.Items[i].Selected = true;
                                this.PowerpointList.Items[i].EnsureVisible();
                                this.PowerpointListIndexChanged();
                                break;
                            }
                        }
                    }
                }
                catch
                {
                    MessageBox.Show("Powerpoint File could not be imported. This is possibly because there is already a file with the same name in the folder.");
                }
            }
        }
        private void Media_Import_Click(object sender, EventArgs e)
        {
            string str = gf.MediaGroups[this.MediaFolder.SelectedIndex, 1];
            string str2 = (gf.TotalMediaFileExt > 0) ? "Media Files (" : "";
            string text = (gf.TotalMediaFileExt > 0) ? ")|" : "";
            for (int i = 0; i < gf.TotalMediaFileExt; i++)
            {
                str2 = str2 + ((i > 0) ? "," : "") + "*" + gf.MediaFileExtension[i, 0].ToLower();
                text = text + ((i > 0) ? ";" : "") + "*" + gf.MediaFileExtension[i, 0].ToLower();
            }
            string filter = str2 + text;
            this.openFileDialog1.Filter = filter;
            this.openFileDialog1.Title = "Import A Media File into folder: " + this.ImagesFolder.Text;
            if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName = this.openFileDialog1.FileName;
                try
                {
                    File.Copy(fileName, str + Path.GetFileName(fileName));
                    this.ShowMediaFolderContents();
                    for (int i = 0; i < this.MediaList.Items.Count; i++)
                    {
                        if (gf.Mid(this.MediaList.Items[i].SubItems[1].Text, 1) == str + Path.GetFileName(fileName))
                        {
                            this.MediaList.Items[i].Selected = true;
                            this.MediaList.Items[i].EnsureVisible();
                            this.MediaListIndexChanged();
                            break;
                        }
                    }
                }
                catch
                {
                    MessageBox.Show("Media File could not be imported. Please check you have write access to the folder");
                }
            }
        }
        private void Btn_Popup_Click(object sender, EventArgs e)
        {
            Point p = new Point(0, 0);
            Button button = (Button)sender;
            this.PopupBtnPressed = button.Name;
            string popupBtnPressed = this.PopupBtnPressed;
            if (popupBtnPressed != null)
            {
                if (popupBtnPressed == "BtnEditSessionNotes")
                {
                    gf.popUpText = this.PreviewNotes.Text;
                    gf.popUpTextMaxLength = this.PreviewNotes.MaxLength;
                    p = new Point(this.splitContainerMain.Left + this.splitContainerMain.Panel1.Width + this.splitContainerMain.SplitterWidth, this.menuStripMain.Top + this.toolStripMain.Height + this.splitContainerPreview.Panel1.Height + this.panel1.Height + 20);
                }
            }
            FrmPopupText popup = new FrmPopupText();
            Point location = base.PointToScreen(p);
            this.popupHelper.ShowPopup(this, popup, location);
        }
        private void popupHelper_PopupClosed(object sender, PopupClosedEventArgs e)
        {
            string popupBtnPressed = this.PopupBtnPressed;
            if (popupBtnPressed != null)
            {
                if (popupBtnPressed == "BtnEditSessionNotes")
                {
                    this.PreviewNotes.Text = gf.popUpText;
                }
            }
        }
        private void Menu_RefreshOutput_Click(object sender, EventArgs e)
        {
            gf.RefreshWindowsDesktop();
            if (gf.ShowRunning)
            {
                this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_RefreshMediaWindow);
            }
        }
        private void FormatLyricsContainers(gf.SongSettings InItem)
        {
            this.FormatLyricsContainers(InItem, false, false);
        }
        private void FormatLyricsContainers(gf.SongSettings InItem, bool Reset, bool SetFocus)
        {
            if (InItem.OutputStyleScreen)
            {
                this.FormatLyricsContainers(ref this.Lyrics_OutputBox, ref this.flowLayoutOutputLyrics, InItem, Reset, SetFocus);
            }
            else
            {
                this.FormatLyricsContainers(ref this.Lyrics_PreviewBox, ref this.flowLayoutPreviewLyrics, InItem, Reset, SetFocus);
            }
        }
        private void FormatLyricsContainers(ref RichTextBox[] InRichTextBox, ref Panel InPanel, gf.SongSettings InItem, bool Reset, bool SetFocus)
        {
            string name = (InPanel.Name == this.flowLayoutPreviewLyrics.Name) ? "Preview" : "Output";
            InPanel.Controls.Clear();
            InPanel.AutoScroll = true;
            int num = Reset ? 1 : InItem.TotalSlides;
            for (int i = 1; i <= num; i++)
            {
                if (InRichTextBox[i] == null)
                {
                    InRichTextBox[i] = new RichTextBox();
                    InRichTextBox[i].Name = name;
                    InRichTextBox[i].Tag = i.ToString();
                    InRichTextBox[i].MouseUp += new MouseEventHandler(this.LyricsRichTextBox_MouseUp);
                    InRichTextBox[i].MouseWheel += new MouseEventHandler(this.LyricsRichTextBox_MouseWheel);
                    InRichTextBox[i].KeyUp += new KeyEventHandler(this.LyricsRichTextBox_KeyUp);
                    InRichTextBox[i].Dock = DockStyle.Top;
                    InRichTextBox[i].ScrollBars = RichTextBoxScrollBars.None;
                    InRichTextBox[i].ReadOnly = true;
                    InRichTextBox[i].BorderStyle = BorderStyle.None;
                    InRichTextBox[i].Font = new Font(InPanel.Font.Name, (float)gf.PreviewArea_FontSize, InPanel.Font.Style);
                }
                else
                {
                    InRichTextBox[i].Font = new Font(InPanel.Font.Name, (float)gf.PreviewArea_FontSize, InPanel.Font.Style);
                    InRichTextBox[i].BorderStyle = BorderStyle.None;
                }
                InPanel.Controls.Add(InRichTextBox[i]);
                InRichTextBox[i].BringToFront();
                if (Reset)
                {
                    InRichTextBox[i].Text = "";
                    InRichTextBox[i].Height = InRichTextBox[i].Font.Height;
                    if (SetFocus)
                    {
                        InRichTextBox[i].Focus();
                    }
                    return;
                }
            }
            gf.DisplayRichTextBoxSeries(ref InItem, ref InPanel, ref InRichTextBox, true, gf.PreviewArea_ShowNotations);
            for (int i = 1; i <= num; i++)
            {
                InRichTextBox[i].BorderStyle = (gf.PreviewArea_LineBetweenScreens ? BorderStyle.FixedSingle : BorderStyle.None);
            }
            this.ResizePreviewRichTextBox();
            this.ResizeOutputRichTextBox();
        }
        private void LyricsRichTextBox_MouseUp(object sender, MouseEventArgs e)
        {
            RichTextBox richTextBox = (RichTextBox)sender;
            richTextBox.SelectionStart = 0;
            richTextBox.SelectionLength = 0;
            int newSlideNumber = gf.StringToInt((string)richTextBox.Tag);
            if (richTextBox.Name == "Output")
            {
                this.LyricsRichTextBox_ShowSlide(gf.OutputItem, newSlideNumber);
            }
            else
            {
                this.LyricsRichTextBox_ShowSlide(gf.PreviewItem, newSlideNumber);
            }
        }
        private void LyricsRichTextBox_KeyUp(object sender, KeyEventArgs e)
        {
            Keys keyCode = e.KeyCode;
            RichTextBox richTextBox = (RichTextBox)sender;
            if (richTextBox.Name == "Output")
            {
                this.ItemKeyPressed(gf.OutputItem, keyCode, e.Shift);
                this.FocusOutputArea();
            }
            else
            {
                this.ItemKeyPressed(gf.PreviewItem, keyCode, e.Shift);
            }
        }
        private void LyricsRichTextBox_MouseWheel(object sender, MouseEventArgs e)
        {
            RichTextBox richTextBox = (RichTextBox)sender;
            int num = -(e.Delta / 3);
            if (richTextBox.Name == "Output")
            {
                num -= this.flowLayoutOutputLyrics.AutoScrollPosition.Y;
                if (num < 0)
                {
                    num = 0;
                }
                this.flowLayoutOutputLyrics.AutoScrollPosition = new Point(0, num);
            }
            else
            {
                num -= this.flowLayoutPreviewLyrics.AutoScrollPosition.Y;
                if (num < 0)
                {
                    num = 0;
                }
                this.flowLayoutPreviewLyrics.AutoScrollPosition = new Point(0, num);
            }
        }
        private void LyricsRichTextBox_ShowSlide(gf.SongSettings InItem, int NewSlideNumber)
        {
            if (InItem.OutputStyleScreen)
            {
                this.OutputRichTextBox_ShowSlide(NewSlideNumber);
            }
            else
            {
                this.PreviewRichTextBox_ShowSlide(NewSlideNumber);
            }
        }
        private void OutputRichTextBox_ShowSlide(int NewSlideNumber)
        {
            gf.OutputItem.CurSlide = NewSlideNumber;
            if (this.ImplementSlideMove(gf.OutputItem, false))
            {
                if (gf.ShowRunning)
                {
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SlideChanged);
                }
            }
            this.FocusOutputArea();
        }
        private void PreviewRichTextBox_ShowSlide(int NewSlideNumber)
        {
            gf.PreviewItem.CurSlide = NewSlideNumber;
            this.ImplementSlideMove(gf.PreviewItem, false);
        }
        private void HighlightPreviewRichTextBox(bool OnEnter, bool ScrollToTop)
        {
            gf.HighlightRichTextBox(ref this.Lyrics_PreviewBox, ref this.flowLayoutPreviewLyrics, gf.PreviewItem, OnEnter, ScrollToTop);
        }
        private void HighlightOutputRichTextBox(bool OnEnter, bool ScrollToTop)
        {
            gf.HighlightRichTextBox(ref this.Lyrics_OutputBox, ref this.flowLayoutOutputLyrics, gf.OutputItem, OnEnter, ScrollToTop);
            this.ShowStatusBarSummary();
        }
        private void ResizePreviewRichTextBox()
        {
            this.ResizeLyricsRichTextBox(ref this.Lyrics_PreviewBox, ref this.flowLayoutPreviewLyrics, gf.PreviewItem);
        }
        private void ResizeOutputRichTextBox()
        {
            this.ResizeLyricsRichTextBox(ref this.Lyrics_OutputBox, ref this.flowLayoutOutputLyrics, gf.OutputItem);
        }
        private void ResizeLyricsRichTextBox(ref RichTextBox[] InRichTextBox, ref Panel InPanel, gf.SongSettings InItem)
        {
            for (int i = 1; i <= InItem.TotalSlides; i++)
            {
                if (InRichTextBox[i] != null)
                {
                    if (InRichTextBox[i].TextLength == 0)
                    {
                        InRichTextBox[i].Height = 5;
                    }
                    else
                    {
                        Point positionFromCharIndex = InRichTextBox[i].GetPositionFromCharIndex(InRichTextBox[i].TextLength - 1);
                        InRichTextBox[i].Height = positionFromCharIndex.Y + InRichTextBox[i].Font.Height * 2;
                    }
                }
            }
        }
        private void flowLayoutOutputLyrics_Click(object sender, EventArgs e)
        {
            if (gf.OutputItem.TotalSlides > 0)
            {
                this.LyricsRichTextBox_ShowSlide(gf.OutputItem, gf.OutputItem.TotalSlides);
                this.HighlightOutputRichTextBox(true, false);
            }
        }
        private void flowLayoutPreviewLyrics_Click(object sender, EventArgs e)
        {
            if (gf.PreviewItem.TotalSlides > 0)
            {
                this.LyricsRichTextBox_ShowSlide(gf.PreviewItem, gf.PreviewItem.TotalSlides);
                this.HighlightPreviewRichTextBox(true, false);
            }
        }
        private void flowLayoutPreviewLyrics_Leave(object sender, EventArgs e)
        {
            this.HighlightPreviewRichTextBox(false, false);
        }
        private void flowLayoutOutputLyrics_Leave(object sender, EventArgs e)
        {
            this.HighlightOutputRichTextBox(false, false);
        }
        private void OutputTextBoxLM_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Return | e.KeyCode == Keys.Return)
            {
                this.SendLyricsMonitorMessage();
            }
        }
        private void OutputTextBoxLM_Enter(object sender, EventArgs e)
        {
            if (gf.UseFocusedTextRegionColour)
            {
                Color backColor = this.OutputTextBoxLM.BackColor;
                gf.SetEnterColour(ref backColor);
                this.OutputTextBoxLM.BackColor = backColor;
            }
            this.OutputTextBoxLM.SelectAll();
        }
        private void OutputTextBoxLM_Leave(object sender, EventArgs e)
        {
            Color backColor = this.OutputTextBoxLM.BackColor;
            gf.SetLeaveColour(ref backColor);
            this.OutputTextBoxLM.BackColor = backColor;
        }
        private void OutputBtnLMSend_Click(object sender, EventArgs e)
        {
            this.SendLyricsMonitorMessage();
        }
        private void OutputBtnLMClear_Click(object sender, EventArgs e)
        {
            this.OutputTextBoxLM.Text = "";
            this.SendLyricsMonitorMessage();
        }
        private void SendLyricsMonitorMessage()
        {
            gf.LyricsAlertDetails = gf.Trim(this.OutputTextBoxLM.Text);
            this.OutputTextBoxLM.Text = gf.Trim(this.OutputTextBoxLM.Text);
            this.AlertWindow_OnMessage(2, "");
        }
        private void OutputInfo_KeyUp(object sender, KeyEventArgs e)
        {
            Keys keyCode = e.KeyCode;
            this.ItemKeyPressed(gf.OutputItem, keyCode, e.Shift);
        }
        private void GotoNextNonRotateItem(gf.SongSettings InItem)
        {
            this.SaveWorshipList();
            int nextNonRotateItem = gf.GetNextNonRotateItem(InItem.Type == "G");
            bool flag = false;
            if (gf.GapItemOption == gf.GapType.None)
            {
                if (nextNonRotateItem != gf.StartPresAt)
                {
                    this.ManualMoveToItem(InItem, nextNonRotateItem);
                }
            }
            else
            {
                if (nextNonRotateItem == gf.StartPresAt)
                {
                    if (InItem.Type != "G")
                    {
                        flag = true;
                    }
                }
                else
                {
                    if (nextNonRotateItem > 1)
                    {
                        flag = true;
                    }
                }
            }
            if (flag)
            {
                gf.StartPresAt = nextNonRotateItem;
                InItem.CurItemNo = gf.StartPresAt;
                gf.Launch_StartPresAt = gf.StartPresAt;
                this.LoadItem(ref InItem, "G1", "", 0);
                if (gf.ShowRunning)
                {
                    gf.MainAction_SongChanged_Transaction = ImageTransitionControl.TransitionAction.AsStored;
                    gf.MainAction_MoveToItemKeyDirection = gf.KeyDirection.Refresh;
                    this.RemoteControlLiveShow(FrmMain.LiveShowAction.Remote_SongJumpTo);
                }
            }
            this.FocusOutputArea();
            this.UpdateWorshipShowIcons();
        }
        private void SaveInfoFilePreview(bool ReloadImageData)
        {
            if (gf.PreviewItem.Type == "I")
            {
                string songSequence = gf.PreviewItem.SongSequence;
                gf.PreviewItem.SongSequence = gf.PreviewItem.SongOriginalLoadedSequence;
                if (gf.SaveXMLInfoScreen(gf.PreviewItem, gf.PreviewItem.ItemID, null, ReloadImageData, true))
                {
                    if (gf.FormInUse("InfoScreen"))
                    {
                        gf.InfoScreenAction = gf.InfoType.FormatStringUpdate;
                        gf.InfoScreenFileName = gf.PreviewItem.ItemID;
                        gf.InfoScreenNewFormatString = gf.PreviewItem.Format.FormatString;
                        gf.InfoScreenBackgroundPicture = gf.PreviewItem.Format.BackgroundPicture;
                        if (ReloadImageData)
                        {
                            gf.InfoScreenLoadNewBackground = true;
                        }
                        gf.InfoScreen_RequestReceived = true;
                    }
                }
                gf.PreviewItem.SongSequence = songSequence;
            }
        }
        private void Ind_checkBox_Click(object sender, EventArgs e)
        {
            this.Ind_checkBox_Action();
        }
        private void Ind_checkBox_Action()
        {
            if (this.Ind_checkBox.Checked)
            {
                gf.PreviewItem.Format.BackgroundPicture = gf.BackgroundPicture;
                gf.PreviewItem.Format.BackgroundMode = gf.BackgroundMode;
                this.Ind_NoImage.Enabled = (gf.PreviewItem.Format.BackgroundPicture != "");
                gf.LoadIndividualFormatData(ref gf.PreviewItem, this.GetNewFormatString());
                this.AllowIndividualFormat(true, true);
                if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
                {
                    int selectedIndex = gf.GetSelectedIndex(this.WorshipListItems);
                    if (selectedIndex >= 0)
                    {
                        this.WorshipListItems.Items[selectedIndex].SubItems[2].Text = gf.PreviewItem.Format.FormatString;
                    }
                    this.SaveWorshipList();
                }
                else
                {
                    if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
                    {
                        gf.SaveFormatStringToDatabase(gf.PreviewItem.ItemID, gf.PreviewItem.Format.FormatString);
                    }
                }
            }
            else
            {
                string formatString = gf.PreviewItem.Format.FormatString;
                this.ClearFormatPicture();
                this.NoIndividualFormat();
                if (gf.PreviewItem.Source == gf.ItemSource.WorshipList)
                {
                    if (formatString != gf.PreviewItem.Format.FormatString)
                    {
                        this.WorshipListIndexChanged();
                        if (gf.OutputItem.ItemID != "")
                        {
                            if (gf.PreviewItem.ItemID == gf.OutputItem.ItemID)
                            {
                                this.CopyPreviewToOutput();
                            }
                        }
                    }
                }
                else
                {
                    if (gf.PreviewItem.Source == gf.ItemSource.SongsList)
                    {
                        gf.SaveFormatStringToDatabase(gf.PreviewItem.ItemID, "");
                    }
                }
            }
            this.SaveInfoFilePreview(true);
        }
        protected override void Dispose(bool disposing)
        {
            if (disposing && this.components != null)
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
            this.toolStripContainerMain = new System.Windows.Forms.ToolStripContainer();
            this.splitContainerMain = new System.Windows.Forms.SplitContainer();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.tabControlSource = new System.Windows.Forms.TabControl();
            this.tabFolders = new System.Windows.Forms.TabPage();
            this.panelFolders = new System.Windows.Forms.Panel();
            this.toolStripFolders = new System.Windows.Forms.ToolStrip();
            this.Folders_WordCount = new System.Windows.Forms.ToolStripButton();
            this.SongsList = new System.Windows.Forms.ListView();
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.CMenuSongs = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.CMenuSongs_SelectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuSongs_UnselectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuSongs_AddShow = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator38 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuSongs_Edit = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuSongs_Copy = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuSongs_Refresh = new System.Windows.Forms.ToolStripMenuItem();
            this.SongFolder = new System.Windows.Forms.ComboBox();
            this.tabFiles = new System.Windows.Forms.TabPage();
            this.panelInfoScreen2 = new System.Windows.Forms.Panel();
            this.InfoScreentoolstrip2 = new System.Windows.Forms.ToolStrip();
            this.InfoScreen_New = new System.Windows.Forms.ToolStripButton();
            this.InfoScreen_Edit = new System.Windows.Forms.ToolStripButton();
            this.InfoScreen_Copy = new System.Windows.Forms.ToolStripButton();
            this.InfoScreen_Move = new System.Windows.Forms.ToolStripButton();
            this.InfoScreen_Delete = new System.Windows.Forms.ToolStripButton();
            this.panelExternalFiles = new System.Windows.Forms.Panel();
            this.panelInfoScreen1 = new System.Windows.Forms.Panel();
            this.InfoScreentoolstrip1 = new System.Windows.Forms.ToolStrip();
            this.InfoScreen_OpenFolder = new System.Windows.Forms.ToolStripButton();
            this.InfoScreen_Import = new System.Windows.Forms.ToolStripButton();
            this.InfoScreenFolder = new System.Windows.Forms.ComboBox();
            this.InfoScreenList = new System.Windows.Forms.ListView();
            this.columnHeader23 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader24 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader25 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader26 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader27 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader28 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader29 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.CMenuFiles = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.CMenuFiles_SelectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuFiles_UnselectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuFiles_AddShow = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuFiles_Edit = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuFiles_Copy = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator25 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuFiles_Refresh = new System.Windows.Forms.ToolStripMenuItem();
            this.tabPowerpoint = new System.Windows.Forms.TabPage();
            this.flowLayoutExternalPowerPoint = new System.Windows.Forms.FlowLayoutPanel();
            this.panelPowerpoint2 = new System.Windows.Forms.Panel();
            this.toolStripPowerpoint2 = new System.Windows.Forms.ToolStrip();
            this.Powerpoint_Edit = new System.Windows.Forms.ToolStripButton();
            this.Powerpoint_Copy = new System.Windows.Forms.ToolStripButton();
            this.Powerpoint_Move = new System.Windows.Forms.ToolStripButton();
            this.Powerpoint_Delete = new System.Windows.Forms.ToolStripButton();
            this.PowerpointList = new System.Windows.Forms.ListView();
            this.columnHeader30 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader31 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader32 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader33 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader34 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader35 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader36 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.panelPowerpoint1 = new System.Windows.Forms.Panel();
            this.PowerpointFolder = new System.Windows.Forms.ComboBox();
            this.panelExternalFiles1 = new System.Windows.Forms.Panel();
            this.toolStripPowerpoint1 = new System.Windows.Forms.ToolStrip();
            this.PP_ListType = new System.Windows.Forms.ToolStripDropDownButton();
            this.PP_ListStyle = new System.Windows.Forms.ToolStripMenuItem();
            this.PP_PreviewStyle = new System.Windows.Forms.ToolStripMenuItem();
            this.PP_OpenFolder = new System.Windows.Forms.ToolStripButton();
            this.PP_Import = new System.Windows.Forms.ToolStripButton();
            this.tabBibles = new System.Windows.Forms.TabPage();
            this.BibleText = new System.Windows.Forms.RichTextBox();
            this.CMenuBible = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.CMenuBible_SelectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuBible_UnselectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuBible_AddShow = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator17 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuBible_AddRegion2 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator24 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuBible_Copy = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuBible_CopyInfoScreen = new System.Windows.Forms.ToolStripMenuItem();
            this.BibleUserLookup = new System.Windows.Forms.TextBox();
            this.panelBible2 = new System.Windows.Forms.Panel();
            this.toolStripBible2 = new System.Windows.Forms.ToolStrip();
            this.Bibles_Go = new System.Windows.Forms.ToolStripButton();
            this.BookLookup = new System.Windows.Forms.ComboBox();
            this.TabBibleVersions = new System.Windows.Forms.TabControl();
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.tabImages = new System.Windows.Forms.TabPage();
            this.flowLayoutImages = new System.Windows.Forms.FlowLayoutPanel();
            this.panelImagesTop = new System.Windows.Forms.Panel();
            this.panelImage1 = new System.Windows.Forms.Panel();
            this.toolStripImage1 = new System.Windows.Forms.ToolStrip();
            this.Image_OpenFolder = new System.Windows.Forms.ToolStripButton();
            this.Image_Import = new System.Windows.Forms.ToolStripButton();
            this.ImagesFolder = new System.Windows.Forms.ComboBox();
            this.tabMedia = new System.Windows.Forms.TabPage();
            this.panel11 = new System.Windows.Forms.Panel();
            this.panelMedia1 = new System.Windows.Forms.Panel();
            this.toolStripMedia1 = new System.Windows.Forms.ToolStrip();
            this.Media_OpenFolder = new System.Windows.Forms.ToolStripButton();
            this.Media_Import = new System.Windows.Forms.ToolStripButton();
            this.MediaFolder = new System.Windows.Forms.ComboBox();
            this.MediaList = new System.Windows.Forms.ListView();
            this.columnHeader37 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader38 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader39 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader40 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader41 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader42 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader43 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.tabDefault = new System.Windows.Forms.TabPage();
            this.DefPanel = new System.Windows.Forms.Panel();
            this.panelDefTemplate = new System.Windows.Forms.Panel();
            this.toolStripDefTemplates = new System.Windows.Forms.ToolStrip();
            this.Def_LoadTemplate = new System.Windows.Forms.ToolStripButton();
            this.Def_SaveTemplate = new System.Windows.Forms.ToolStripButton();
            this.DefApplyDefaultsBtn = new System.Windows.Forms.Button();
            this.DefgroupBox2 = new System.Windows.Forms.GroupBox();
            this.panelDef4 = new System.Windows.Forms.Panel();
            this.toolStripDef4 = new System.Windows.Forms.ToolStrip();
            this.Def_TransItem = new System.Windows.Forms.ToolStripComboBox();
            this.Def_TransSlides = new System.Windows.Forms.ToolStripComboBox();
            this.panelDef3 = new System.Windows.Forms.Panel();
            this.toolStripDef3 = new System.Windows.Forms.ToolStrip();
            this.Def_ImageMode = new System.Windows.Forms.ToolStripDropDownButton();
            this.Def_ImageTile = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_ImageCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_ImageBestFit = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_NoImage = new System.Windows.Forms.ToolStripButton();
            this.Def_BackColour = new System.Windows.Forms.ToolStripButton();
            this.Def_AssignMedia = new System.Windows.Forms.ToolStripButton();
            this.DefgroupBox3 = new System.Windows.Forms.GroupBox();
            this.panel21 = new System.Windows.Forms.Panel();
            this.toolStripDef7 = new System.Windows.Forms.ToolStrip();
            this.Def_PanelFontBold = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelFontItalics = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelFontUnderline = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelFontShadow = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelFontOutline = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelFontList = new System.Windows.Forms.ToolStripComboBox();
            this.Def_PanelHeight = new System.Windows.Forms.NumericUpDown();
            this.panelDef5 = new System.Windows.Forms.Panel();
            this.toolStripDef5 = new System.Windows.Forms.ToolStrip();
            this.Def_PanelAsR1 = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelTextColour = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator14 = new System.Windows.Forms.ToolStripSeparator();
            this.Def_PanelTransparent = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelBackColour = new System.Windows.Forms.ToolStripButton();
            this.panelDef6 = new System.Windows.Forms.Panel();
            this.toolStripDef6 = new System.Windows.Forms.ToolStrip();
            this.Def_PanelShow = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelTitle = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelCopyright = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelSong = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelSlides = new System.Windows.Forms.ToolStripButton();
            this.Def_PanelPrevNext = new System.Windows.Forms.ToolStripButton();
            this.label5 = new System.Windows.Forms.Label();
            this.DefgroupBox1 = new System.Windows.Forms.GroupBox();
            this.panelDef2 = new System.Windows.Forms.Panel();
            this.toolStripDef2 = new System.Windows.Forms.ToolStrip();
            this.Def_HeadAlign = new System.Windows.Forms.ToolStripDropDownButton();
            this.Def_HeadAlignAsR1 = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_HeadAlignAsR2 = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_HeadAlignLeft = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_HeadAlignCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_HeadAlignRight = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator26 = new System.Windows.Forms.ToolStripSeparator();
            this.Def_R1Align = new System.Windows.Forms.ToolStripDropDownButton();
            this.Def_R1AlignLeft = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_R1AlignCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_R1AlignRight = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_R1Colour = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
            this.Def_R2Align = new System.Windows.Forms.ToolStripDropDownButton();
            this.Def_R2AlignLeft = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_R2AlignCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_R2AlignRight = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_R2Colour = new System.Windows.Forms.ToolStripButton();
            this.panelDef1 = new System.Windows.Forms.Panel();
            this.toolStripDef1 = new System.Windows.Forms.ToolStrip();
            this.Def_Head = new System.Windows.Forms.ToolStripDropDownButton();
            this.Def_HeadNoTitles = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_HeadAllTitles = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_HeadFirstScreen = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_Region = new System.Windows.Forms.ToolStripDropDownButton();
            this.Def_ShowRegion1 = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_ShowRegion2 = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_ShowRegionBoth = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_VAlign = new System.Windows.Forms.ToolStripDropDownButton();
            this.Def_VAlignTop = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_VAlignCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_VAlignBottom = new System.Windows.Forms.ToolStripMenuItem();
            this.Def_Shadow = new System.Windows.Forms.ToolStripButton();
            this.Def_Outline = new System.Windows.Forms.ToolStripButton();
            this.Def_Interlace = new System.Windows.Forms.ToolStripButton();
            this.Def_Notations = new System.Windows.Forms.ToolStripButton();
            this.Def_ToZero = new System.Windows.Forms.ToolStripButton();
            this.tabControlLists = new System.Windows.Forms.TabControl();
            this.tabWorshipList = new System.Windows.Forms.TabPage();
            this.panelWorshipList2 = new System.Windows.Forms.Panel();
            this.toolStripWorshipList2 = new System.Windows.Forms.ToolStrip();
            this.WL_Up = new System.Windows.Forms.ToolStripButton();
            this.WL_Down = new System.Windows.Forms.ToolStripButton();
            this.WL_Delete = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
            this.WL_Word = new System.Windows.Forms.ToolStripButton();
            this.WL_Notes = new System.Windows.Forms.ToolStripButton();
            this.panelWorshipList1 = new System.Windows.Forms.Panel();
            this.toolStripWorshipList1 = new System.Windows.Forms.ToolStrip();
            this.WL_Manage = new System.Windows.Forms.ToolStripButton();
            this.WL_Add = new System.Windows.Forms.ToolStripButton();
            this.WL_Open = new System.Windows.Forms.ToolStripButton();
            this.WorshipListItems = new System.Windows.Forms.ListView();
            this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader9 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader10 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader11 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader12 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader13 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader14 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.CMenuWorship = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.CMenuWorship_SelectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuWorship_UnselectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuWorship_Clear = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator39 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuWorship_Edit = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuWorship_Play = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator37 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuWorship_AddUsages = new System.Windows.Forms.ToolStripMenuItem();
            this.imageList1 = new System.Windows.Forms.ImageList(this.components);
            this.SessionList = new System.Windows.Forms.ComboBox();
            this.tabPraiseBook = new System.Windows.Forms.TabPage();
            this.panelPraiseBook2 = new System.Windows.Forms.Panel();
            this.toolStripPraiseBook2 = new System.Windows.Forms.ToolStrip();
            this.toolStripSeparator22 = new System.Windows.Forms.ToolStripSeparator();
            this.PB_Delete = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
            this.PB_Word = new System.Windows.Forms.ToolStripButton();
            this.PB_Html = new System.Windows.Forms.ToolStripButton();
            this.panelPraiseBook1 = new System.Windows.Forms.Panel();
            this.toolStripPraiseBook1 = new System.Windows.Forms.ToolStrip();
            this.PB_Manage = new System.Windows.Forms.ToolStripButton();
            this.PB_Add = new System.Windows.Forms.ToolStripButton();
            this.PB_WordCount = new System.Windows.Forms.ToolStripButton();
            this.PraiseBookItems = new System.Windows.Forms.ListView();
            this.columnHeader17 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader18 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader19 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader20 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader21 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader22 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.CMenuPraiseB = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.CMenuPraiseB_SelectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuPraiseB_UnselectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuPraiseB_Clear = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator36 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuPraiseB_Edit = new System.Windows.Forms.ToolStripMenuItem();
            this.PraiseBook = new System.Windows.Forms.ComboBox();
            this.splitContainer2 = new System.Windows.Forms.SplitContainer();
            this.splitContainerPreview = new System.Windows.Forms.SplitContainer();
            this.panelPreviewTop = new System.Windows.Forms.Panel();
            this.IndPanel = new System.Windows.Forms.Panel();
            this.panelIndTemplate = new System.Windows.Forms.Panel();
            this.toolStripIndTemplates = new System.Windows.Forms.ToolStrip();
            this.Ind_LoadTemplate = new System.Windows.Forms.ToolStripButton();
            this.Ind_SaveTemplate = new System.Windows.Forms.ToolStripButton();
            this.IndgroupBox4 = new System.Windows.Forms.GroupBox();
            this.panelInd7 = new System.Windows.Forms.Panel();
            this.toolStripInd7 = new System.Windows.Forms.ToolStrip();
            this.Ind_Reg2FontsList = new System.Windows.Forms.ToolStripComboBox();
            this.Ind_Reg2SizeUpDown = new System.Windows.Forms.NumericUpDown();
            this.label6 = new System.Windows.Forms.Label();
            this.Ind_Reg2TopUpDown = new System.Windows.Forms.NumericUpDown();
            this.panelInd6 = new System.Windows.Forms.Panel();
            this.toolStripInd6 = new System.Windows.Forms.ToolStrip();
            this.Ind_R2Bold = new System.Windows.Forms.ToolStripButton();
            this.Ind_R2Italics = new System.Windows.Forms.ToolStripDropDownButton();
            this.Ind_R2Italics0 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R2Italics1 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R2Italics2 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R2Underline = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator15 = new System.Windows.Forms.ToolStripSeparator();
            this.Ind_R2Align = new System.Windows.Forms.ToolStripDropDownButton();
            this.Ind_R2AlignLeft = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R2AlignCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R2AlignRight = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R2Colour = new System.Windows.Forms.ToolStripButton();
            this.label7 = new System.Windows.Forms.Label();
            this.IndgroupBox3 = new System.Windows.Forms.GroupBox();
            this.panelInd5 = new System.Windows.Forms.Panel();
            this.toolStripInd5 = new System.Windows.Forms.ToolStrip();
            this.Ind_Reg1FontsList = new System.Windows.Forms.ToolStripComboBox();
            this.Ind_Reg1SizeUpDown = new System.Windows.Forms.NumericUpDown();
            this.labelBlackScreenOn = new System.Windows.Forms.Label();
            this.Ind_Reg1TopUpDown = new System.Windows.Forms.NumericUpDown();
            this.panelInd4 = new System.Windows.Forms.Panel();
            this.toolStripInd4 = new System.Windows.Forms.ToolStrip();
            this.Ind_R1Bold = new System.Windows.Forms.ToolStripButton();
            this.Ind_R1Italics = new System.Windows.Forms.ToolStripDropDownButton();
            this.Ind_R1Italics0 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R1Italics1 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R1Italics2 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R1Underline = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator13 = new System.Windows.Forms.ToolStripSeparator();
            this.Ind_R1Align = new System.Windows.Forms.ToolStripDropDownButton();
            this.Ind_R1AlignLeft = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R1AlignCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R1AlignRight = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_R1Colour = new System.Windows.Forms.ToolStripButton();
            this.label4 = new System.Windows.Forms.Label();
            this.IndgroupBox2 = new System.Windows.Forms.GroupBox();
            this.Ind_BottomUpDown = new System.Windows.Forms.NumericUpDown();
            this.panelInd3 = new System.Windows.Forms.Panel();
            this.toolStripInd3 = new System.Windows.Forms.ToolStrip();
            this.Ind_TransItem = new System.Windows.Forms.ToolStripComboBox();
            this.Ind_TransSlides = new System.Windows.Forms.ToolStripComboBox();
            this.Ind_RightUpDown = new System.Windows.Forms.NumericUpDown();
            this.panelInd2 = new System.Windows.Forms.Panel();
            this.toolStripInd2 = new System.Windows.Forms.ToolStrip();
            this.Ind_ImageMode = new System.Windows.Forms.ToolStripDropDownButton();
            this.Ind_ImageTile = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_ImageCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_ImageBestFit = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_NoImage = new System.Windows.Forms.ToolStripButton();
            this.Ind_BackColour = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator27 = new System.Windows.Forms.ToolStripSeparator();
            this.Ind_AssignMedia = new System.Windows.Forms.ToolStripButton();
            this.label3 = new System.Windows.Forms.Label();
            this.Ind_LeftUpDown = new System.Windows.Forms.NumericUpDown();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.IndgroupBox1 = new System.Windows.Forms.GroupBox();
            this.flowLayoutPreviewPowerPoint = new System.Windows.Forms.FlowLayoutPanel();
            this.panel4 = new System.Windows.Forms.Panel();
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.Ind_HeadAlign = new System.Windows.Forms.ToolStripDropDownButton();
            this.Ind_HeadAlignAsR1 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_HeadAlignAsR2 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_HeadAlignLeft = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_HeadAlignCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_HeadAlignRight = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_CapoDown = new System.Windows.Forms.ToolStripButton();
            this.Ind_CapoUp = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
            this.Ind_HideDisplayPanel = new System.Windows.Forms.ToolStripButton();
            this.panelInd1 = new System.Windows.Forms.Panel();
            this.toolStripInd1 = new System.Windows.Forms.ToolStrip();
            this.Ind_Head = new System.Windows.Forms.ToolStripDropDownButton();
            this.Ind_HeadNoTitles = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_HeadAllTitles = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_HeadFirstScreen = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_Region = new System.Windows.Forms.ToolStripDropDownButton();
            this.Ind_ShowRegion1 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_ShowRegion2 = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_ShowRegionBoth = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_VAlign = new System.Windows.Forms.ToolStripDropDownButton();
            this.Ind_VAlignTop = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_VAlignCentre = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_VAlignBottom = new System.Windows.Forms.ToolStripMenuItem();
            this.Ind_Shadow = new System.Windows.Forms.ToolStripButton();
            this.Ind_Outline = new System.Windows.Forms.ToolStripButton();
            this.Ind_Interlace = new System.Windows.Forms.ToolStripButton();
            this.Ind_Notations = new System.Windows.Forms.ToolStripButton();
            this.Ind_checkBox = new System.Windows.Forms.CheckBox();
            this.PreviewInfo = new System.Windows.Forms.RichTextBox();
            this.flowLayoutPreviewLyrics = new System.Windows.Forms.Panel();
            this.panel9 = new System.Windows.Forms.Panel();
            this.btnToLive = new System.Windows.Forms.Button();
            this.btnToOutputMoveNext = new System.Windows.Forms.Button();
            this.PreviewPanelDisplayName = new System.Windows.Forms.ListView();
            this.columnHeader15 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.btnToOutput = new System.Windows.Forms.Button();
            this.panelPreviewBottom = new System.Windows.Forms.Panel();
            this.panelPreviewSessionNotes2 = new System.Windows.Forms.Panel();
            this.PreviewNotes = new System.Windows.Forms.RichTextBox();
            this.PreviewHolder = new System.Windows.Forms.Panel();
            this.PreviewBack = new System.Windows.Forms.Panel();
            this.panel7 = new System.Windows.Forms.Panel();
            this.panel1 = new System.Windows.Forms.Panel();
            this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
            this.PreviewBtnVerse1 = new System.Windows.Forms.Button();
            this.PreviewBtnVerse2 = new System.Windows.Forms.Button();
            this.PreviewBtnVerse3 = new System.Windows.Forms.Button();
            this.PreviewBtnVerse4 = new System.Windows.Forms.Button();
            this.PreviewBtnVerse5 = new System.Windows.Forms.Button();
            this.PreviewBtnVerse6 = new System.Windows.Forms.Button();
            this.PreviewBtnVerse7 = new System.Windows.Forms.Button();
            this.PreviewBtnVerse8 = new System.Windows.Forms.Button();
            this.PreviewBtnVerse9 = new System.Windows.Forms.Button();
            this.PreviewBtnVersePreChorus = new System.Windows.Forms.Button();
            this.PreviewBtnVersePreChorus2 = new System.Windows.Forms.Button();
            this.PreviewBtnVerseChorus = new System.Windows.Forms.Button();
            this.PreviewBtnVerseChorus2 = new System.Windows.Forms.Button();
            this.PreviewBtnVerseBridge = new System.Windows.Forms.Button();
            this.PreviewBtnVerseBridge2 = new System.Windows.Forms.Button();
            this.PreviewBtnVerseEnding = new System.Windows.Forms.Button();
            this.panel3 = new System.Windows.Forms.Panel();
            this.PreviewBtnSlideDown = new System.Windows.Forms.Button();
            this.PreviewBtnSlideUp = new System.Windows.Forms.Button();
            this.PreviewBtnItemDown = new System.Windows.Forms.Button();
            this.PreviewBtnItemUp = new System.Windows.Forms.Button();
            this.IndradioButtonInfo = new System.Windows.Forms.RadioButton();
            this.IndradioButtonFormat = new System.Windows.Forms.RadioButton();
            this.IndradioButtonText = new System.Windows.Forms.RadioButton();
            this.IndcbPreviewNotes = new System.Windows.Forms.CheckBox();
            this.splitContainerOutput = new System.Windows.Forms.SplitContainer();
            this.panelOutputTop = new System.Windows.Forms.Panel();
            this.flowLayoutOutputPowerPoint = new System.Windows.Forms.FlowLayoutPanel();
            this.flowLayoutOutputLyrics = new System.Windows.Forms.Panel();
            this.OutputInfo = new System.Windows.Forms.TextBox();
            this.panel10 = new System.Windows.Forms.Panel();
            this.cbOutputBlack = new System.Windows.Forms.CheckBox();
            this.cbOutputClear = new System.Windows.Forms.CheckBox();
            this.cbOutputCam = new System.Windows.Forms.CheckBox();
            this.OutputPanelDisplayName = new System.Windows.Forms.ListView();
            this.columnHeader16 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.cbGoLive = new System.Windows.Forms.CheckBox();
            this.panelOutputBottom = new System.Windows.Forms.Panel();
            this.panelOutputLM1 = new System.Windows.Forms.Panel();
            this.OutputTextBoxLM = new System.Windows.Forms.TextBox();
            this.panelOutputLM2 = new System.Windows.Forms.Panel();
            this.panelOutputLM3 = new System.Windows.Forms.Panel();
            this.OutputBtnLMSend = new System.Windows.Forms.Button();
            this.OutputBtnLMClear = new System.Windows.Forms.Button();
            this.OutputHolder = new System.Windows.Forms.Panel();
            this.OutputBack = new System.Windows.Forms.Panel();
            this.panel8 = new System.Windows.Forms.Panel();
            this.labelGapItem = new System.Windows.Forms.Label();
            this.labelHideText = new System.Windows.Forms.Label();
            this.labelBlackScreen = new System.Windows.Forms.Label();
            this.panel2 = new System.Windows.Forms.Panel();
            this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
            this.OutputBtnVerse1 = new System.Windows.Forms.Button();
            this.OutputBtnVerse2 = new System.Windows.Forms.Button();
            this.OutputBtnVerse3 = new System.Windows.Forms.Button();
            this.OutputBtnVerse4 = new System.Windows.Forms.Button();
            this.OutputBtnVerse5 = new System.Windows.Forms.Button();
            this.OutputBtnVerse6 = new System.Windows.Forms.Button();
            this.OutputBtnVerse7 = new System.Windows.Forms.Button();
            this.OutputBtnVerse8 = new System.Windows.Forms.Button();
            this.OutputBtnVerse9 = new System.Windows.Forms.Button();
            this.OutputBtnVersePreChorus = new System.Windows.Forms.Button();
            this.OutputBtnVersePreChorus2 = new System.Windows.Forms.Button();
            this.OutputBtnVerseChorus = new System.Windows.Forms.Button();
            this.OutputBtnVerseChorus2 = new System.Windows.Forms.Button();
            this.OutputBtnVerseBridge = new System.Windows.Forms.Button();
            this.OutputBtnVerseBridge2 = new System.Windows.Forms.Button();
            this.OutputBtnVerseEnding = new System.Windows.Forms.Button();
            this.panel6 = new System.Windows.Forms.Panel();
            this.OutputBtnSlideDown = new System.Windows.Forms.Button();
            this.OutputBtnSlideUp = new System.Windows.Forms.Button();
            this.OutputBtnItemDown = new System.Windows.Forms.Button();
            this.OutputBtnItemUp = new System.Windows.Forms.Button();
            this.OutputBtnRefAlert = new System.Windows.Forms.Button();
            this.OutputBtnMedia = new System.Windows.Forms.Button();
            this.OutputBtnJumpToNonRotate = new System.Windows.Forms.Button();
            this.toolStripMain = new System.Windows.Forms.ToolStrip();
            this.Main_New = new System.Windows.Forms.ToolStripButton();
            this.Main_Edit = new System.Windows.Forms.ToolStripButton();
            this.Main_Copy = new System.Windows.Forms.ToolStripButton();
            this.Main_Move = new System.Windows.Forms.ToolStripButton();
            this.Main_Delete = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.Main_Media = new System.Windows.Forms.ToolStripButton();
            this.Main_Refresh = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.Main_Options = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.Main_NoRotate = new System.Windows.Forms.ToolStripButton();
            this.Main_RotateStyle = new System.Windows.Forms.ToolStripDropDownButton();
            this.Main_Rotate0 = new System.Windows.Forms.ToolStripMenuItem();
            this.Main_Rotate1 = new System.Windows.Forms.ToolStripMenuItem();
            this.Main_Rotate2 = new System.Windows.Forms.ToolStripMenuItem();
            this.Main_Rotate3 = new System.Windows.Forms.ToolStripMenuItem();
            this.Main_Alerts = new System.Windows.Forms.ToolStripButton();
            this.Main_Chinese = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
            this.Main_Find = new System.Windows.Forms.ToolStripButton();
            this.Main_QuickFind = new System.Windows.Forms.ToolStripComboBox();
            this.Main_JumpA = new System.Windows.Forms.ToolStripButton();
            this.Main_JumpB = new System.Windows.Forms.ToolStripButton();
            this.Main_JumpC = new System.Windows.Forms.ToolStripButton();
            this.menuStripMain = new System.Windows.Forms.MenuStrip();
            this.Menu_MainFile = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_WorshipSessions = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_PraiseBookTemplates = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator20 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_ListingOfSelectedFolder = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator16 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_EditHistoryList = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_Exit = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_MainEdit = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_AddSong = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator19 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_EditSong = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_CopySong = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_MoveSong = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_DeleteSong = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator41 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_SelectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_Find = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator21 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_UseSongNumbering = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_ReArrangeSongFolders = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_MainView = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_EasiSlidesFolder = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_Options = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator23 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_Refresh = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_PreviewNotations = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_StatusBar = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_MainOutput = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_StartShow = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_GoLiveWithPreview = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_RefreshOutput = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator28 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_BlackScreen = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_ClearScreen = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_LiveCam = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_RestartCurrentItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator29 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_AlertWindow = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_StopAlert = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator30 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_SwitchChinese = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_MainTools = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_Import = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_ImportFolder = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_Export = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator32 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_Recover = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_Empty = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator33 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_AddToUsages = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_ViewUsages = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator34 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_SmartMerge = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_Compact = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_ClearAllFormatting = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_ClearRegistrySettings = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_MainHelp = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_Contents = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_HelpWeb = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator31 = new System.Windows.Forms.ToolStripSeparator();
            this.Menu_Register = new System.Windows.Forms.ToolStripMenuItem();
            this.Menu_About = new System.Windows.Forms.ToolStripMenuItem();
            this.statusStripMain = new System.Windows.Forms.StatusStrip();
            this.StatusBarPanel1 = new System.Windows.Forms.ToolStripStatusLabel();
            this.StatusBarPanel2 = new System.Windows.Forms.ToolStripStatusLabel();
            this.StatusBarPanel3 = new System.Windows.Forms.ToolStripStatusLabel();
            this.StatusBarPanel4 = new System.Windows.Forms.ToolStripStatusLabel();
            this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
            this.TimerFlasher = new System.Windows.Forms.Timer(this.components);
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.TimerReMax = new System.Windows.Forms.Timer(this.components);
            this.TimerSearch = new System.Windows.Forms.Timer(this.components);
            this.CMenuImages = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.CMenuImages_AddItem = new System.Windows.Forms.ToolStripMenuItem();
            this.CMenuImages_AddDefault = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator35 = new System.Windows.Forms.ToolStripSeparator();
            this.CMenuImages_Refresh = new System.Windows.Forms.ToolStripMenuItem();
            this.TimerMessagingWindowOpen = new System.Windows.Forms.Timer(this.components);
            this.TimerToFront = new System.Windows.Forms.Timer(this.components);
            this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
            this.toolStripContainerMain.ContentPanel.SuspendLayout();
            this.toolStripContainerMain.TopToolStripPanel.SuspendLayout();
            this.toolStripContainerMain.SuspendLayout();
            this.splitContainerMain.Panel1.SuspendLayout();
            this.splitContainerMain.Panel2.SuspendLayout();
            this.splitContainerMain.SuspendLayout();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.tabControlSource.SuspendLayout();
            this.tabFolders.SuspendLayout();
            this.panelFolders.SuspendLayout();
            this.toolStripFolders.SuspendLayout();
            this.CMenuSongs.SuspendLayout();
            this.tabFiles.SuspendLayout();
            this.panelInfoScreen2.SuspendLayout();
            this.InfoScreentoolstrip2.SuspendLayout();
            this.panelExternalFiles.SuspendLayout();
            this.panelInfoScreen1.SuspendLayout();
            this.InfoScreentoolstrip1.SuspendLayout();
            this.CMenuFiles.SuspendLayout();
            this.tabPowerpoint.SuspendLayout();
            this.panelPowerpoint2.SuspendLayout();
            this.toolStripPowerpoint2.SuspendLayout();
            this.panelPowerpoint1.SuspendLayout();
            this.panelExternalFiles1.SuspendLayout();
            this.toolStripPowerpoint1.SuspendLayout();
            this.tabBibles.SuspendLayout();
            this.CMenuBible.SuspendLayout();
            this.panelBible2.SuspendLayout();
            this.toolStripBible2.SuspendLayout();
            this.TabBibleVersions.SuspendLayout();
            this.tabImages.SuspendLayout();
            this.panelImagesTop.SuspendLayout();
            this.panelImage1.SuspendLayout();
            this.toolStripImage1.SuspendLayout();
            this.tabMedia.SuspendLayout();
            this.panel11.SuspendLayout();
            this.panelMedia1.SuspendLayout();
            this.toolStripMedia1.SuspendLayout();
            this.tabDefault.SuspendLayout();
            this.DefPanel.SuspendLayout();
            this.panelDefTemplate.SuspendLayout();
            this.toolStripDefTemplates.SuspendLayout();
            this.DefgroupBox2.SuspendLayout();
            this.panelDef4.SuspendLayout();
            this.toolStripDef4.SuspendLayout();
            this.panelDef3.SuspendLayout();
            this.toolStripDef3.SuspendLayout();
            this.DefgroupBox3.SuspendLayout();
            this.panel21.SuspendLayout();
            this.toolStripDef7.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Def_PanelHeight)).BeginInit();
            this.panelDef5.SuspendLayout();
            this.toolStripDef5.SuspendLayout();
            this.panelDef6.SuspendLayout();
            this.toolStripDef6.SuspendLayout();
            this.DefgroupBox1.SuspendLayout();
            this.panelDef2.SuspendLayout();
            this.toolStripDef2.SuspendLayout();
            this.panelDef1.SuspendLayout();
            this.toolStripDef1.SuspendLayout();
            this.tabControlLists.SuspendLayout();
            this.tabWorshipList.SuspendLayout();
            this.panelWorshipList2.SuspendLayout();
            this.toolStripWorshipList2.SuspendLayout();
            this.panelWorshipList1.SuspendLayout();
            this.toolStripWorshipList1.SuspendLayout();
            this.CMenuWorship.SuspendLayout();
            this.tabPraiseBook.SuspendLayout();
            this.panelPraiseBook2.SuspendLayout();
            this.toolStripPraiseBook2.SuspendLayout();
            this.panelPraiseBook1.SuspendLayout();
            this.toolStripPraiseBook1.SuspendLayout();
            this.CMenuPraiseB.SuspendLayout();
            this.splitContainer2.Panel1.SuspendLayout();
            this.splitContainer2.Panel2.SuspendLayout();
            this.splitContainer2.SuspendLayout();
            this.splitContainerPreview.Panel1.SuspendLayout();
            this.splitContainerPreview.Panel2.SuspendLayout();
            this.splitContainerPreview.SuspendLayout();
            this.panelPreviewTop.SuspendLayout();
            this.IndPanel.SuspendLayout();
            this.panelIndTemplate.SuspendLayout();
            this.toolStripIndTemplates.SuspendLayout();
            this.IndgroupBox4.SuspendLayout();
            this.panelInd7.SuspendLayout();
            this.toolStripInd7.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_Reg2SizeUpDown)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_Reg2TopUpDown)).BeginInit();
            this.panelInd6.SuspendLayout();
            this.toolStripInd6.SuspendLayout();
            this.IndgroupBox3.SuspendLayout();
            this.panelInd5.SuspendLayout();
            this.toolStripInd5.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_Reg1SizeUpDown)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_Reg1TopUpDown)).BeginInit();
            this.panelInd4.SuspendLayout();
            this.toolStripInd4.SuspendLayout();
            this.IndgroupBox2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_BottomUpDown)).BeginInit();
            this.panelInd3.SuspendLayout();
            this.toolStripInd3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_RightUpDown)).BeginInit();
            this.panelInd2.SuspendLayout();
            this.toolStripInd2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_LeftUpDown)).BeginInit();
            this.IndgroupBox1.SuspendLayout();
            this.panel4.SuspendLayout();
            this.toolStrip1.SuspendLayout();
            this.panelInd1.SuspendLayout();
            this.toolStripInd1.SuspendLayout();
            this.panel9.SuspendLayout();
            this.panelPreviewBottom.SuspendLayout();
            this.panelPreviewSessionNotes2.SuspendLayout();
            this.panel1.SuspendLayout();
            this.flowLayoutPanel1.SuspendLayout();
            this.panel3.SuspendLayout();
            this.splitContainerOutput.Panel1.SuspendLayout();
            this.splitContainerOutput.Panel2.SuspendLayout();
            this.splitContainerOutput.SuspendLayout();
            this.panelOutputTop.SuspendLayout();
            this.panel10.SuspendLayout();
            this.panelOutputBottom.SuspendLayout();
            this.panelOutputLM1.SuspendLayout();
            this.panelOutputLM3.SuspendLayout();
            this.panel8.SuspendLayout();
            this.panel2.SuspendLayout();
            this.flowLayoutPanel2.SuspendLayout();
            this.panel6.SuspendLayout();
            this.toolStripMain.SuspendLayout();
            this.menuStripMain.SuspendLayout();
            this.statusStripMain.SuspendLayout();
            this.CMenuImages.SuspendLayout();
            this.SuspendLayout();
            // 
            // toolStripContainerMain
            // 
            // 
            // toolStripContainerMain.ContentPanel
            // 
            this.toolStripContainerMain.ContentPanel.Controls.Add(this.splitContainerMain);
            this.toolStripContainerMain.ContentPanel.Size = new System.Drawing.Size(942, 418);
            this.toolStripContainerMain.Dock = System.Windows.Forms.DockStyle.Fill;
            this.toolStripContainerMain.Location = new System.Drawing.Point(0, 24);
            this.toolStripContainerMain.Name = "toolStripContainerMain";
            this.toolStripContainerMain.Size = new System.Drawing.Size(942, 443);
            this.toolStripContainerMain.TabIndex = 1;
            this.toolStripContainerMain.Text = "toolStripContainer1";
            // 
            // toolStripContainerMain.TopToolStripPanel
            // 
            this.toolStripContainerMain.TopToolStripPanel.Controls.Add(this.toolStripMain);
            // 
            // splitContainerMain
            // 
            this.splitContainerMain.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainerMain.Location = new System.Drawing.Point(0, 0);
            this.splitContainerMain.Name = "splitContainerMain";
            // 
            // splitContainerMain.Panel1
            // 
            this.splitContainerMain.Panel1.Controls.Add(this.splitContainer1);
            // 
            // splitContainerMain.Panel2
            // 
            this.splitContainerMain.Panel2.Controls.Add(this.splitContainer2);
            this.splitContainerMain.Panel2MinSize = 50;
            this.splitContainerMain.Size = new System.Drawing.Size(942, 418);
            this.splitContainerMain.SplitterDistance = 338;
            this.splitContainerMain.SplitterWidth = 3;
            this.splitContainerMain.TabIndex = 0;
            this.splitContainerMain.Text = "splitContainer1";
            // 
            // splitContainer1
            // 
            this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.tabControlSource);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.tabControlLists);
            this.splitContainer1.Size = new System.Drawing.Size(338, 418);
            this.splitContainer1.SplitterDistance = 283;
            this.splitContainer1.SplitterWidth = 3;
            this.splitContainer1.TabIndex = 0;
            this.splitContainer1.Text = "splitContainer2";
            // 
            // tabControlSource
            // 
            this.tabControlSource.Alignment = System.Windows.Forms.TabAlignment.Bottom;
            this.tabControlSource.Controls.Add(this.tabFolders);
            this.tabControlSource.Controls.Add(this.tabFiles);
            this.tabControlSource.Controls.Add(this.tabPowerpoint);
            this.tabControlSource.Controls.Add(this.tabBibles);
            this.tabControlSource.Controls.Add(this.tabImages);
            this.tabControlSource.Controls.Add(this.tabMedia);
            this.tabControlSource.Controls.Add(this.tabDefault);
            this.tabControlSource.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControlSource.Location = new System.Drawing.Point(0, 0);
            this.tabControlSource.Name = "tabControlSource";
            this.tabControlSource.Padding = new System.Drawing.Point(5, 3);
            this.tabControlSource.SelectedIndex = 0;
            this.tabControlSource.Size = new System.Drawing.Size(334, 279);
            this.tabControlSource.TabIndex = 0;
            this.tabControlSource.SelectedIndexChanged += new System.EventHandler(this.tabControlSource_SelectedIndexChanged);
            this.tabControlSource.Resize += new System.EventHandler(this.tabControlSource_Resize);
            // 
            // tabFolders
            // 
            this.tabFolders.BackColor = System.Drawing.SystemColors.Control;
            this.tabFolders.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.tabFolders.Controls.Add(this.panelFolders);
            this.tabFolders.Controls.Add(this.SongsList);
            this.tabFolders.Controls.Add(this.SongFolder);
            this.tabFolders.Location = new System.Drawing.Point(4, 4);
            this.tabFolders.Name = "tabFolders";
            this.tabFolders.Padding = new System.Windows.Forms.Padding(3);
            this.tabFolders.Size = new System.Drawing.Size(326, 253);
            this.tabFolders.TabIndex = 0;
            this.tabFolders.Text = "Folders";
            // 
            // panelFolders
            // 
            this.panelFolders.Controls.Add(this.toolStripFolders);
            this.panelFolders.Location = new System.Drawing.Point(66, 3);
            this.panelFolders.Name = "panelFolders";
            this.panelFolders.Size = new System.Drawing.Size(24, 22);
            this.panelFolders.TabIndex = 7;
            // 
            // toolStripFolders
            // 
            this.toolStripFolders.AutoSize = false;
            this.toolStripFolders.CanOverflow = false;
            this.toolStripFolders.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripFolders.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripFolders.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Folders_WordCount});
            this.toolStripFolders.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripFolders.Location = new System.Drawing.Point(0, -1);
            this.toolStripFolders.Name = "toolStripFolders";
            this.toolStripFolders.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripFolders.Size = new System.Drawing.Size(24, 25);
            this.toolStripFolders.TabIndex = 0;
            // 
            // Folders_WordCount
            // 
            this.Folders_WordCount.CheckOnClick = true;
            this.Folders_WordCount.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Folders_WordCount.Image = global::Properties.Resources.sort;
            this.Folders_WordCount.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Folders_WordCount.Name = "Folders_WordCount";
            this.Folders_WordCount.Size = new System.Drawing.Size(23, 22);
            this.Folders_WordCount.Tag = "wordcount";
            this.Folders_WordCount.ToolTipText = "Sort by CJK Word Count";
            this.Folders_WordCount.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Folders_WordCount_MouseUp);
            // 
            // SongsList
            // 
            this.SongsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader3,
            this.columnHeader4,
            this.columnHeader5,
            this.columnHeader6,
            this.columnHeader7});
            this.SongsList.ContextMenuStrip = this.CMenuSongs;
            this.SongsList.FullRowSelect = true;
            this.SongsList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.SongsList.HideSelection = false;
            this.SongsList.LabelWrap = false;
            this.SongsList.Location = new System.Drawing.Point(3, 27);
            this.SongsList.Name = "SongsList";
            this.SongsList.ShowItemToolTips = true;
            this.SongsList.Size = new System.Drawing.Size(243, 271);
            this.SongsList.TabIndex = 1;
            this.SongsList.UseCompatibleStateImageBehavior = false;
            this.SongsList.View = System.Windows.Forms.View.Details;
            this.SongsList.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.SongsList_ItemDrag);
            this.SongsList.Enter += new System.EventHandler(this.FormControl_Enter);
            this.SongsList.KeyUp += new System.Windows.Forms.KeyEventHandler(this.SongsList_KeyUp);
            this.SongsList.Leave += new System.EventHandler(this.FormControl_Leave);
            this.SongsList.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SongsList_MouseDoubleClick);
            this.SongsList.MouseUp += new System.Windows.Forms.MouseEventHandler(this.SongsList_MouseUp);
            // 
            // columnHeader2
            // 
            this.columnHeader2.Width = 0;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Width = 0;
            // 
            // columnHeader4
            // 
            this.columnHeader4.Width = 0;
            // 
            // columnHeader5
            // 
            this.columnHeader5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.columnHeader5.Width = 0;
            // 
            // columnHeader6
            // 
            this.columnHeader6.Width = 0;
            // 
            // columnHeader7
            // 
            this.columnHeader7.Width = 0;
            // 
            // CMenuSongs
            // 
            this.CMenuSongs.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.CMenuSongs_SelectAll,
            this.CMenuSongs_UnselectAll,
            this.CMenuSongs_AddShow,
            this.toolStripSeparator38,
            this.CMenuSongs_Edit,
            this.CMenuSongs_Copy,
            this.toolStripSeparator10,
            this.CMenuSongs_Refresh});
            this.CMenuSongs.Name = "ContextMenuBibleText";
            this.CMenuSongs.Size = new System.Drawing.Size(142, 148);
            // 
            // CMenuSongs_SelectAll
            // 
            this.CMenuSongs_SelectAll.Name = "CMenuSongs_SelectAll";
            this.CMenuSongs_SelectAll.Size = new System.Drawing.Size(141, 22);
            this.CMenuSongs_SelectAll.Text = "Select &All";
            this.CMenuSongs_SelectAll.Click += new System.EventHandler(this.CMenuSongs_SelectAll_Click);
            // 
            // CMenuSongs_UnselectAll
            // 
            this.CMenuSongs_UnselectAll.Name = "CMenuSongs_UnselectAll";
            this.CMenuSongs_UnselectAll.Size = new System.Drawing.Size(141, 22);
            this.CMenuSongs_UnselectAll.Text = "&Unselect All";
            this.CMenuSongs_UnselectAll.Click += new System.EventHandler(this.CMenuSongs_UnselectAll_Click);
            // 
            // CMenuSongs_AddShow
            // 
            this.CMenuSongs_AddShow.Name = "CMenuSongs_AddShow";
            this.CMenuSongs_AddShow.Size = new System.Drawing.Size(141, 22);
            this.CMenuSongs_AddShow.Text = "Add && &Show";
            this.CMenuSongs_AddShow.Click += new System.EventHandler(this.CMenuSongs_AddShow_Click);
            // 
            // toolStripSeparator38
            // 
            this.toolStripSeparator38.Name = "toolStripSeparator38";
            this.toolStripSeparator38.Size = new System.Drawing.Size(138, 6);
            // 
            // CMenuSongs_Edit
            // 
            this.CMenuSongs_Edit.Name = "CMenuSongs_Edit";
            this.CMenuSongs_Edit.Size = new System.Drawing.Size(141, 22);
            this.CMenuSongs_Edit.Text = "Edit item";
            this.CMenuSongs_Edit.Click += new System.EventHandler(this.CMenuSongs_Edit_Click);
            // 
            // CMenuSongs_Copy
            // 
            this.CMenuSongs_Copy.Name = "CMenuSongs_Copy";
            this.CMenuSongs_Copy.Size = new System.Drawing.Size(141, 22);
            this.CMenuSongs_Copy.Text = "Copy item";
            this.CMenuSongs_Copy.Click += new System.EventHandler(this.CMenuSongs_Copy_Click);
            // 
            // toolStripSeparator10
            // 
            this.toolStripSeparator10.Name = "toolStripSeparator10";
            this.toolStripSeparator10.Size = new System.Drawing.Size(138, 6);
            // 
            // CMenuSongs_Refresh
            // 
            this.CMenuSongs_Refresh.Name = "CMenuSongs_Refresh";
            this.CMenuSongs_Refresh.Size = new System.Drawing.Size(141, 22);
            this.CMenuSongs_Refresh.Text = "Refresh";
            this.CMenuSongs_Refresh.Click += new System.EventHandler(this.CMenuSongs_Refresh_Click);
            // 
            // SongFolder
            // 
            this.SongFolder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.SongFolder.FormattingEnabled = true;
            this.SongFolder.Location = new System.Drawing.Point(3, 3);
            this.SongFolder.MaxDropDownItems = 12;
            this.SongFolder.Name = "SongFolder";
            this.SongFolder.Size = new System.Drawing.Size(66, 21);
            this.SongFolder.TabIndex = 0;
            this.SongFolder.SelectedIndexChanged += new System.EventHandler(this.SongFolder_SelectedIndexChanged);
            // 
            // tabFiles
            // 
            this.tabFiles.BackColor = System.Drawing.SystemColors.Control;
            this.tabFiles.Controls.Add(this.panelInfoScreen2);
            this.tabFiles.Controls.Add(this.panelExternalFiles);
            this.tabFiles.Controls.Add(this.InfoScreenList);
            this.tabFiles.Location = new System.Drawing.Point(4, 4);
            this.tabFiles.Name = "tabFiles";
            this.tabFiles.Size = new System.Drawing.Size(326, 253);
            this.tabFiles.TabIndex = 4;
            this.tabFiles.Text = "InfoScr";
            // 
            // panelInfoScreen2
            // 
            this.panelInfoScreen2.Controls.Add(this.InfoScreentoolstrip2);
            this.panelInfoScreen2.Location = new System.Drawing.Point(66, 27);
            this.panelInfoScreen2.Name = "panelInfoScreen2";
            this.panelInfoScreen2.Size = new System.Drawing.Size(25, 122);
            this.panelInfoScreen2.TabIndex = 17;
            // 
            // InfoScreentoolstrip2
            // 
            this.InfoScreentoolstrip2.AutoSize = false;
            this.InfoScreentoolstrip2.CanOverflow = false;
            this.InfoScreentoolstrip2.Dock = System.Windows.Forms.DockStyle.None;
            this.InfoScreentoolstrip2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.InfoScreentoolstrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.InfoScreen_New,
            this.InfoScreen_Edit,
            this.InfoScreen_Copy,
            this.InfoScreen_Move,
            this.InfoScreen_Delete});
            this.InfoScreentoolstrip2.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow;
            this.InfoScreentoolstrip2.Location = new System.Drawing.Point(0, -1);
            this.InfoScreentoolstrip2.Name = "InfoScreentoolstrip2";
            this.InfoScreentoolstrip2.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.InfoScreentoolstrip2.Size = new System.Drawing.Size(25, 133);
            this.InfoScreentoolstrip2.TabIndex = 0;
            // 
            // InfoScreen_New
            // 
            this.InfoScreen_New.AutoSize = false;
            this.InfoScreen_New.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.InfoScreen_New.Image = global::Properties.Resources._new;
            this.InfoScreen_New.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.InfoScreen_New.Name = "InfoScreen_New";
            this.InfoScreen_New.Size = new System.Drawing.Size(23, 22);
            this.InfoScreen_New.Tag = "new";
            this.InfoScreen_New.ToolTipText = "New";
            this.InfoScreen_New.Click += new System.EventHandler(this.InfoScreen_EditBtns_Click);
            // 
            // InfoScreen_Edit
            // 
            this.InfoScreen_Edit.AutoSize = false;
            this.InfoScreen_Edit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.InfoScreen_Edit.Image = global::Properties.Resources.edit;
            this.InfoScreen_Edit.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.InfoScreen_Edit.Name = "InfoScreen_Edit";
            this.InfoScreen_Edit.Size = new System.Drawing.Size(22, 22);
            this.InfoScreen_Edit.Tag = "edit";
            this.InfoScreen_Edit.ToolTipText = "Edit";
            this.InfoScreen_Edit.Click += new System.EventHandler(this.InfoScreen_EditBtns_Click);
            // 
            // InfoScreen_Copy
            // 
            this.InfoScreen_Copy.AutoSize = false;
            this.InfoScreen_Copy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.InfoScreen_Copy.Image = global::Properties.Resources.copy;
            this.InfoScreen_Copy.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.InfoScreen_Copy.Name = "InfoScreen_Copy";
            this.InfoScreen_Copy.Size = new System.Drawing.Size(22, 22);
            this.InfoScreen_Copy.Tag = "copy";
            this.InfoScreen_Copy.ToolTipText = "Copy";
            this.InfoScreen_Copy.Click += new System.EventHandler(this.InfoScreen_EditBtns_Click);
            // 
            // InfoScreen_Move
            // 
            this.InfoScreen_Move.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.InfoScreen_Move.Image = global::Properties.Resources.move;
            this.InfoScreen_Move.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.InfoScreen_Move.Name = "InfoScreen_Move";
            this.InfoScreen_Move.Size = new System.Drawing.Size(23, 20);
            this.InfoScreen_Move.Tag = "move";
            this.InfoScreen_Move.ToolTipText = "Move";
            this.InfoScreen_Move.Click += new System.EventHandler(this.InfoScreen_EditBtns_Click);
            // 
            // InfoScreen_Delete
            // 
            this.InfoScreen_Delete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.InfoScreen_Delete.Image = global::Properties.Resources.deletered;
            this.InfoScreen_Delete.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.InfoScreen_Delete.Name = "InfoScreen_Delete";
            this.InfoScreen_Delete.Size = new System.Drawing.Size(23, 20);
            this.InfoScreen_Delete.Tag = "delete";
            this.InfoScreen_Delete.ToolTipText = "Delete";
            this.InfoScreen_Delete.Click += new System.EventHandler(this.InfoScreen_EditBtns_Click);
            // 
            // panelExternalFiles
            // 
            this.panelExternalFiles.Controls.Add(this.panelInfoScreen1);
            this.panelExternalFiles.Controls.Add(this.InfoScreenFolder);
            this.panelExternalFiles.Dock = System.Windows.Forms.DockStyle.Top;
            this.panelExternalFiles.Location = new System.Drawing.Point(0, 0);
            this.panelExternalFiles.Name = "panelExternalFiles";
            this.panelExternalFiles.Size = new System.Drawing.Size(326, 26);
            this.panelExternalFiles.TabIndex = 16;
            // 
            // panelInfoScreen1
            // 
            this.panelInfoScreen1.Controls.Add(this.InfoScreentoolstrip1);
            this.panelInfoScreen1.Location = new System.Drawing.Point(115, 3);
            this.panelInfoScreen1.Name = "panelInfoScreen1";
            this.panelInfoScreen1.Size = new System.Drawing.Size(50, 20);
            this.panelInfoScreen1.TabIndex = 18;
            // 
            // InfoScreentoolstrip1
            // 
            this.InfoScreentoolstrip1.AutoSize = false;
            this.InfoScreentoolstrip1.CanOverflow = false;
            this.InfoScreentoolstrip1.Dock = System.Windows.Forms.DockStyle.None;
            this.InfoScreentoolstrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.InfoScreentoolstrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.InfoScreen_OpenFolder,
            this.InfoScreen_Import});
            this.InfoScreentoolstrip1.Location = new System.Drawing.Point(0, -1);
            this.InfoScreentoolstrip1.Name = "InfoScreentoolstrip1";
            this.InfoScreentoolstrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.InfoScreentoolstrip1.Size = new System.Drawing.Size(54, 24);
            this.InfoScreentoolstrip1.TabIndex = 5;
            // 
            // InfoScreen_OpenFolder
            // 
            this.InfoScreen_OpenFolder.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.InfoScreen_OpenFolder.Image = global::Properties.Resources.open;
            this.InfoScreen_OpenFolder.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.InfoScreen_OpenFolder.Name = "InfoScreen_OpenFolder";
            this.InfoScreen_OpenFolder.Size = new System.Drawing.Size(23, 21);
            this.InfoScreen_OpenFolder.Tag = "";
            this.InfoScreen_OpenFolder.ToolTipText = "Open Folder";
            this.InfoScreen_OpenFolder.Click += new System.EventHandler(this.InfoScreen_OpenFolder_Click);
            // 
            // InfoScreen_Import
            // 
            this.InfoScreen_Import.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.InfoScreen_Import.Image = global::Properties.Resources.import;
            this.InfoScreen_Import.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.InfoScreen_Import.Name = "InfoScreen_Import";
            this.InfoScreen_Import.Size = new System.Drawing.Size(23, 21);
            this.InfoScreen_Import.ToolTipText = "Import an InfoScreen Into Folder";
            this.InfoScreen_Import.Click += new System.EventHandler(this.InfoScreen_Import_Click);
            // 
            // InfoScreenFolder
            // 
            this.InfoScreenFolder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.InfoScreenFolder.FormattingEnabled = true;
            this.InfoScreenFolder.Location = new System.Drawing.Point(3, 3);
            this.InfoScreenFolder.MaxDropDownItems = 12;
            this.InfoScreenFolder.Name = "InfoScreenFolder";
            this.InfoScreenFolder.Size = new System.Drawing.Size(106, 21);
            this.InfoScreenFolder.TabIndex = 17;
            this.InfoScreenFolder.SelectedIndexChanged += new System.EventHandler(this.InfoScreenFolder_SelectedIndexChanged);
            // 
            // InfoScreenList
            // 
            this.InfoScreenList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader23,
            this.columnHeader24,
            this.columnHeader25,
            this.columnHeader26,
            this.columnHeader27,
            this.columnHeader28,
            this.columnHeader29});
            this.InfoScreenList.ContextMenuStrip = this.CMenuFiles;
            this.InfoScreenList.FullRowSelect = true;
            this.InfoScreenList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.InfoScreenList.HideSelection = false;
            this.InfoScreenList.LabelWrap = false;
            this.InfoScreenList.Location = new System.Drawing.Point(3, 27);
            this.InfoScreenList.Name = "InfoScreenList";
            this.InfoScreenList.ShowItemToolTips = true;
            this.InfoScreenList.Size = new System.Drawing.Size(35, 74);
            this.InfoScreenList.TabIndex = 5;
            this.InfoScreenList.UseCompatibleStateImageBehavior = false;
            this.InfoScreenList.View = System.Windows.Forms.View.Details;
            this.InfoScreenList.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.InfoScreenList_ItemDrag);
            this.InfoScreenList.Enter += new System.EventHandler(this.FormControl_Enter);
            this.InfoScreenList.KeyUp += new System.Windows.Forms.KeyEventHandler(this.InfoScreenList_KeyUp);
            this.InfoScreenList.Leave += new System.EventHandler(this.FormControl_Leave);
            this.InfoScreenList.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.InfoScreenList_MouseDoubleClick);
            this.InfoScreenList.MouseUp += new System.Windows.Forms.MouseEventHandler(this.InfoScreenList_MouseUp);
            // 
            // columnHeader24
            // 
            this.columnHeader24.Width = 0;
            // 
            // columnHeader25
            // 
            this.columnHeader25.Width = 0;
            // 
            // columnHeader26
            // 
            this.columnHeader26.Width = 0;
            // 
            // columnHeader27
            // 
            this.columnHeader27.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.columnHeader27.Width = 0;
            // 
            // columnHeader28
            // 
            this.columnHeader28.Width = 0;
            // 
            // columnHeader29
            // 
            this.columnHeader29.Width = 0;
            // 
            // CMenuFiles
            // 
            this.CMenuFiles.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.CMenuFiles_SelectAll,
            this.CMenuFiles_UnselectAll,
            this.CMenuFiles_AddShow,
            this.toolStripSeparator12,
            this.CMenuFiles_Edit,
            this.CMenuFiles_Copy,
            this.toolStripSeparator25,
            this.CMenuFiles_Refresh});
            this.CMenuFiles.Name = "ContextMenuBibleText";
            this.CMenuFiles.Size = new System.Drawing.Size(142, 148);
            // 
            // CMenuFiles_SelectAll
            // 
            this.CMenuFiles_SelectAll.Name = "CMenuFiles_SelectAll";
            this.CMenuFiles_SelectAll.Size = new System.Drawing.Size(141, 22);
            this.CMenuFiles_SelectAll.Text = "Select &All";
            this.CMenuFiles_SelectAll.Click += new System.EventHandler(this.CMenuFiles_SelectAll_Click);
            // 
            // CMenuFiles_UnselectAll
            // 
            this.CMenuFiles_UnselectAll.Name = "CMenuFiles_UnselectAll";
            this.CMenuFiles_UnselectAll.Size = new System.Drawing.Size(141, 22);
            this.CMenuFiles_UnselectAll.Text = "&Unselect All";
            this.CMenuFiles_UnselectAll.Click += new System.EventHandler(this.CMenuFiles_UnselectAll_Click);
            // 
            // CMenuFiles_AddShow
            // 
            this.CMenuFiles_AddShow.Name = "CMenuFiles_AddShow";
            this.CMenuFiles_AddShow.Size = new System.Drawing.Size(141, 22);
            this.CMenuFiles_AddShow.Text = "Add && &Show";
            this.CMenuFiles_AddShow.Click += new System.EventHandler(this.CMenuFiles_AddShow_Click);
            // 
            // toolStripSeparator12
            // 
            this.toolStripSeparator12.Name = "toolStripSeparator12";
            this.toolStripSeparator12.Size = new System.Drawing.Size(138, 6);
            // 
            // CMenuFiles_Edit
            // 
            this.CMenuFiles_Edit.Name = "CMenuFiles_Edit";
            this.CMenuFiles_Edit.Size = new System.Drawing.Size(141, 22);
            this.CMenuFiles_Edit.Text = "Edit";
            this.CMenuFiles_Edit.Click += new System.EventHandler(this.CMenuFiles_Edit_Click);
            // 
            // CMenuFiles_Copy
            // 
            this.CMenuFiles_Copy.Name = "CMenuFiles_Copy";
            this.CMenuFiles_Copy.Size = new System.Drawing.Size(141, 22);
            this.CMenuFiles_Copy.Text = "Copy";
            this.CMenuFiles_Copy.Click += new System.EventHandler(this.CMenuFiles_Copy_Click);
            // 
            // toolStripSeparator25
            // 
            this.toolStripSeparator25.Name = "toolStripSeparator25";
            this.toolStripSeparator25.Size = new System.Drawing.Size(138, 6);
            // 
            // CMenuFiles_Refresh
            // 
            this.CMenuFiles_Refresh.Name = "CMenuFiles_Refresh";
            this.CMenuFiles_Refresh.Size = new System.Drawing.Size(141, 22);
            this.CMenuFiles_Refresh.Text = "Refresh";
            this.CMenuFiles_Refresh.Click += new System.EventHandler(this.CMenuFiles_Refresh_Click);
            // 
            // tabPowerpoint
            // 
            this.tabPowerpoint.BackColor = System.Drawing.SystemColors.Control;
            this.tabPowerpoint.Controls.Add(this.flowLayoutExternalPowerPoint);
            this.tabPowerpoint.Controls.Add(this.panelPowerpoint2);
            this.tabPowerpoint.Controls.Add(this.PowerpointList);
            this.tabPowerpoint.Controls.Add(this.panelPowerpoint1);
            this.tabPowerpoint.Location = new System.Drawing.Point(4, 4);
            this.tabPowerpoint.Name = "tabPowerpoint";
            this.tabPowerpoint.Size = new System.Drawing.Size(326, 253);
            this.tabPowerpoint.TabIndex = 5;
            this.tabPowerpoint.Text = "PowerP";
            // 
            // flowLayoutExternalPowerPoint
            // 
            this.flowLayoutExternalPowerPoint.AutoScroll = true;
            this.flowLayoutExternalPowerPoint.Location = new System.Drawing.Point(90, 44);
            this.flowLayoutExternalPowerPoint.Name = "flowLayoutExternalPowerPoint";
            this.flowLayoutExternalPowerPoint.Size = new System.Drawing.Size(59, 35);
            this.flowLayoutExternalPowerPoint.TabIndex = 18;
            // 
            // panelPowerpoint2
            // 
            this.panelPowerpoint2.Controls.Add(this.toolStripPowerpoint2);
            this.panelPowerpoint2.Location = new System.Drawing.Point(59, 27);
            this.panelPowerpoint2.Name = "panelPowerpoint2";
            this.panelPowerpoint2.Size = new System.Drawing.Size(25, 98);
            this.panelPowerpoint2.TabIndex = 20;
            // 
            // toolStripPowerpoint2
            // 
            this.toolStripPowerpoint2.AutoSize = false;
            this.toolStripPowerpoint2.CanOverflow = false;
            this.toolStripPowerpoint2.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripPowerpoint2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripPowerpoint2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Powerpoint_Edit,
            this.Powerpoint_Copy,
            this.Powerpoint_Move,
            this.Powerpoint_Delete});
            this.toolStripPowerpoint2.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow;
            this.toolStripPowerpoint2.Location = new System.Drawing.Point(0, -1);
            this.toolStripPowerpoint2.Name = "toolStripPowerpoint2";
            this.toolStripPowerpoint2.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripPowerpoint2.Size = new System.Drawing.Size(25, 108);
            this.toolStripPowerpoint2.TabIndex = 0;
            // 
            // Powerpoint_Edit
            // 
            this.Powerpoint_Edit.AutoSize = false;
            this.Powerpoint_Edit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Powerpoint_Edit.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Powerpoint_Edit.Name = "Powerpoint_Edit";
            this.Powerpoint_Edit.Size = new System.Drawing.Size(22, 22);
            this.Powerpoint_Edit.Tag = "edit";
            this.Powerpoint_Edit.ToolTipText = "Edit";
            this.Powerpoint_Edit.Click += new System.EventHandler(this.Powerpoint_EditBtns_Click);
            // 
            // Powerpoint_Copy
            // 
            this.Powerpoint_Copy.AutoSize = false;
            this.Powerpoint_Copy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Powerpoint_Copy.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Powerpoint_Copy.Name = "Powerpoint_Copy";
            this.Powerpoint_Copy.Size = new System.Drawing.Size(22, 22);
            this.Powerpoint_Copy.Tag = "copy";
            this.Powerpoint_Copy.ToolTipText = "Copy";
            this.Powerpoint_Copy.Click += new System.EventHandler(this.Powerpoint_EditBtns_Click);
            // 
            // Powerpoint_Move
            // 
            this.Powerpoint_Move.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Powerpoint_Move.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Powerpoint_Move.Name = "Powerpoint_Move";
            this.Powerpoint_Move.Size = new System.Drawing.Size(23, 4);
            this.Powerpoint_Move.Tag = "move";
            this.Powerpoint_Move.ToolTipText = "Move";
            this.Powerpoint_Move.Click += new System.EventHandler(this.Powerpoint_EditBtns_Click);
            // 
            // Powerpoint_Delete
            // 
            this.Powerpoint_Delete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Powerpoint_Delete.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Powerpoint_Delete.Name = "Powerpoint_Delete";
            this.Powerpoint_Delete.Size = new System.Drawing.Size(23, 4);
            this.Powerpoint_Delete.Tag = "delete";
            this.Powerpoint_Delete.ToolTipText = "Delete";
            this.Powerpoint_Delete.Click += new System.EventHandler(this.Powerpoint_EditBtns_Click);
            // 
            // PowerpointList
            // 
            this.PowerpointList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader30,
            this.columnHeader31,
            this.columnHeader32,
            this.columnHeader33,
            this.columnHeader34,
            this.columnHeader35,
            this.columnHeader36});
            this.PowerpointList.ContextMenuStrip = this.CMenuFiles;
            this.PowerpointList.FullRowSelect = true;
            this.PowerpointList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.PowerpointList.HideSelection = false;
            this.PowerpointList.LabelWrap = false;
            this.PowerpointList.Location = new System.Drawing.Point(3, 27);
            this.PowerpointList.Name = "PowerpointList";
            this.PowerpointList.ShowItemToolTips = true;
            this.PowerpointList.Size = new System.Drawing.Size(35, 74);
            this.PowerpointList.TabIndex = 19;
            this.PowerpointList.UseCompatibleStateImageBehavior = false;
            this.PowerpointList.View = System.Windows.Forms.View.Details;
            this.PowerpointList.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.PowerpointList_ItemDrag);
            this.PowerpointList.Enter += new System.EventHandler(this.FormControl_Enter);
            this.PowerpointList.KeyUp += new System.Windows.Forms.KeyEventHandler(this.PowerpointList_KeyUp);
            this.PowerpointList.Leave += new System.EventHandler(this.FormControl_Leave);
            this.PowerpointList.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.PowerpointList_MouseDoubleClick);
            this.PowerpointList.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PowerpointList_MouseUp);
            // 
            // columnHeader31
            // 
            this.columnHeader31.Width = 0;
            // 
            // columnHeader32
            // 
            this.columnHeader32.Width = 0;
            // 
            // columnHeader33
            // 
            this.columnHeader33.Width = 0;
            // 
            // columnHeader34
            // 
            this.columnHeader34.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.columnHeader34.Width = 0;
            // 
            // columnHeader35
            // 
            this.columnHeader35.Width = 0;
            // 
            // columnHeader36
            // 
            this.columnHeader36.Width = 0;
            // 
            // panelPowerpoint1
            // 
            this.panelPowerpoint1.Controls.Add(this.PowerpointFolder);
            this.panelPowerpoint1.Controls.Add(this.panelExternalFiles1);
            this.panelPowerpoint1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panelPowerpoint1.Location = new System.Drawing.Point(0, 0);
            this.panelPowerpoint1.Name = "panelPowerpoint1";
            this.panelPowerpoint1.Size = new System.Drawing.Size(326, 26);
            this.panelPowerpoint1.TabIndex = 17;
            // 
            // PowerpointFolder
            // 
            this.PowerpointFolder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.PowerpointFolder.FormattingEnabled = true;
            this.PowerpointFolder.Location = new System.Drawing.Point(3, 3);
            this.PowerpointFolder.MaxDropDownItems = 12;
            this.PowerpointFolder.Name = "PowerpointFolder";
            this.PowerpointFolder.Size = new System.Drawing.Size(106, 21);
            this.PowerpointFolder.TabIndex = 17;
            this.PowerpointFolder.SelectedIndexChanged += new System.EventHandler(this.PowerpointFolder_SelectedIndexChanged);
            // 
            // panelExternalFiles1
            // 
            this.panelExternalFiles1.Controls.Add(this.toolStripPowerpoint1);
            this.panelExternalFiles1.Location = new System.Drawing.Point(114, 3);
            this.panelExternalFiles1.Name = "panelExternalFiles1";
            this.panelExternalFiles1.Size = new System.Drawing.Size(78, 22);
            this.panelExternalFiles1.TabIndex = 13;
            // 
            // toolStripPowerpoint1
            // 
            this.toolStripPowerpoint1.AutoSize = false;
            this.toolStripPowerpoint1.CanOverflow = false;
            this.toolStripPowerpoint1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripPowerpoint1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripPowerpoint1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.PP_ListType,
            this.PP_OpenFolder,
            this.PP_Import});
            this.toolStripPowerpoint1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripPowerpoint1.Location = new System.Drawing.Point(0, -1);
            this.toolStripPowerpoint1.Name = "toolStripPowerpoint1";
            this.toolStripPowerpoint1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripPowerpoint1.Size = new System.Drawing.Size(82, 25);
            this.toolStripPowerpoint1.TabIndex = 5;
            // 
            // PP_ListType
            // 
            this.PP_ListType.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.PP_ListType.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.PP_ListStyle,
            this.PP_PreviewStyle});
            this.PP_ListType.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.PP_ListType.Name = "PP_ListType";
            this.PP_ListType.Size = new System.Drawing.Size(13, 22);
            this.PP_ListType.Tag = "0";
            this.PP_ListType.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.PP_Style_DropDownItemClicked);
            // 
            // PP_ListStyle
            // 
            this.PP_ListStyle.Image = global::Properties.Resources.powerpoint;
            this.PP_ListStyle.Name = "PP_ListStyle";
            this.PP_ListStyle.Size = new System.Drawing.Size(179, 22);
            this.PP_ListStyle.Tag = "0";
            this.PP_ListStyle.Text = "Powerpoint Listing";
            // 
            // PP_PreviewStyle
            // 
            this.PP_PreviewStyle.Image = global::Properties.Resources.ppt;
            this.PP_PreviewStyle.Name = "PP_PreviewStyle";
            this.PP_PreviewStyle.Size = new System.Drawing.Size(179, 22);
            this.PP_PreviewStyle.Tag = "1";
            this.PP_PreviewStyle.Text = "Powerpoint Preview";
            // 
            // PP_OpenFolder
            // 
            this.PP_OpenFolder.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.PP_OpenFolder.Image = global::Properties.Resources.open;
            this.PP_OpenFolder.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.PP_OpenFolder.Name = "PP_OpenFolder";
            this.PP_OpenFolder.Size = new System.Drawing.Size(23, 22);
            this.PP_OpenFolder.Tag = "";
            this.PP_OpenFolder.ToolTipText = "Open Powerpoint Folder";
            this.PP_OpenFolder.Click += new System.EventHandler(this.PP_Btn_Click);
            // 
            // PP_Import
            // 
            this.PP_Import.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.PP_Import.Image = global::Properties.Resources.import;
            this.PP_Import.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.PP_Import.Name = "PP_Import";
            this.PP_Import.Size = new System.Drawing.Size(23, 22);
            this.PP_Import.ToolTipText = "Import a Powerpoint File into Folder";
            this.PP_Import.Click += new System.EventHandler(this.PP_Import_Click);
            // 
            // tabBibles
            // 
            this.tabBibles.BackColor = System.Drawing.SystemColors.Control;
            this.tabBibles.Controls.Add(this.BibleText);
            this.tabBibles.Controls.Add(this.BibleUserLookup);
            this.tabBibles.Controls.Add(this.panelBible2);
            this.tabBibles.Controls.Add(this.BookLookup);
            this.tabBibles.Controls.Add(this.TabBibleVersions);
            this.tabBibles.Location = new System.Drawing.Point(4, 4);
            this.tabBibles.Name = "tabBibles";
            this.tabBibles.Size = new System.Drawing.Size(326, 253);
            this.tabBibles.TabIndex = 2;
            this.tabBibles.Text = "Bibles";
            // 
            // BibleText
            // 
            this.BibleText.BackColor = System.Drawing.SystemColors.Window;
            this.BibleText.ContextMenuStrip = this.CMenuBible;
            this.BibleText.EnableAutoDragDrop = true;
            this.BibleText.HideSelection = false;
            this.BibleText.Location = new System.Drawing.Point(3, 27);
            this.BibleText.Name = "BibleText";
            this.BibleText.ReadOnly = true;
            this.BibleText.Size = new System.Drawing.Size(30, 42);
            this.BibleText.TabIndex = 2;
            this.BibleText.Text = "";
            this.BibleText.Enter += new System.EventHandler(this.FormControl_Enter);
            this.BibleText.KeyUp += new System.Windows.Forms.KeyEventHandler(this.BibleText_KeyUp);
            this.BibleText.Leave += new System.EventHandler(this.FormControl_Leave);
            this.BibleText.MouseDown += new System.Windows.Forms.MouseEventHandler(this.BibleText_MouseDown);
            this.BibleText.MouseUp += new System.Windows.Forms.MouseEventHandler(this.BibleText_MouseUp);
            // 
            // CMenuBible
            // 
            this.CMenuBible.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.CMenuBible_SelectAll,
            this.CMenuBible_UnselectAll,
            this.CMenuBible_AddShow,
            this.toolStripSeparator17,
            this.CMenuBible_AddRegion2,
            this.toolStripSeparator24,
            this.CMenuBible_Copy,
            this.CMenuBible_CopyInfoScreen});
            this.CMenuBible.Name = "ContextMenuBibleText";
            this.CMenuBible.Size = new System.Drawing.Size(176, 148);
            // 
            // CMenuBible_SelectAll
            // 
            this.CMenuBible_SelectAll.Name = "CMenuBible_SelectAll";
            this.CMenuBible_SelectAll.Size = new System.Drawing.Size(175, 22);
            this.CMenuBible_SelectAll.Text = "Select &All";
            this.CMenuBible_SelectAll.Click += new System.EventHandler(this.CMenuBible_SelectAll_Click);
            // 
            // CMenuBible_UnselectAll
            // 
            this.CMenuBible_UnselectAll.Name = "CMenuBible_UnselectAll";
            this.CMenuBible_UnselectAll.Size = new System.Drawing.Size(175, 22);
            this.CMenuBible_UnselectAll.Text = "&Unselect All";
            this.CMenuBible_UnselectAll.Click += new System.EventHandler(this.CMenuBible_UnselectAll_Click);
            // 
            // CMenuBible_AddShow
            // 
            this.CMenuBible_AddShow.Name = "CMenuBible_AddShow";
            this.CMenuBible_AddShow.Size = new System.Drawing.Size(175, 22);
            this.CMenuBible_AddShow.Text = "Add && &Show";
            this.CMenuBible_AddShow.Click += new System.EventHandler(this.CMenuBible_AddShow_Click);
            // 
            // toolStripSeparator17
            // 
            this.toolStripSeparator17.Name = "toolStripSeparator17";
            this.toolStripSeparator17.Size = new System.Drawing.Size(172, 6);
            // 
            // CMenuBible_AddRegion2
            // 
            this.CMenuBible_AddRegion2.Name = "CMenuBible_AddRegion2";
            this.CMenuBible_AddRegion2.Size = new System.Drawing.Size(175, 22);
            this.CMenuBible_AddRegion2.Text = "Add &Region 2";
            // 
            // toolStripSeparator24
            // 
            this.toolStripSeparator24.Name = "toolStripSeparator24";
            this.toolStripSeparator24.Size = new System.Drawing.Size(172, 6);
            // 
            // CMenuBible_Copy
            // 
            this.CMenuBible_Copy.Name = "CMenuBible_Copy";
            this.CMenuBible_Copy.Size = new System.Drawing.Size(175, 22);
            this.CMenuBible_Copy.Text = "&Copy";
            this.CMenuBible_Copy.Click += new System.EventHandler(this.CMenuBible_Copy_Click);
            // 
            // CMenuBible_CopyInfoScreen
            // 
            this.CMenuBible_CopyInfoScreen.Name = "CMenuBible_CopyInfoScreen";
            this.CMenuBible_CopyInfoScreen.Size = new System.Drawing.Size(175, 22);
            this.CMenuBible_CopyInfoScreen.Text = "Copy to &InfoScreen";
            this.CMenuBible_CopyInfoScreen.Click += new System.EventHandler(this.CMenuBible_CopyInfoScreen_Click);
            // 
            // BibleUserLookup
            // 
            this.BibleUserLookup.Location = new System.Drawing.Point(64, 4);
            this.BibleUserLookup.Name = "BibleUserLookup";
            this.BibleUserLookup.Size = new System.Drawing.Size(45, 20);
            this.BibleUserLookup.TabIndex = 1;
            this.BibleUserLookup.Enter += new System.EventHandler(this.FormControl_Enter);
            this.BibleUserLookup.KeyUp += new System.Windows.Forms.KeyEventHandler(this.BibleUserLookup_KeyUp);
            this.BibleUserLookup.Leave += new System.EventHandler(this.FormControl_Leave);
            // 
            // panelBible2
            // 
            this.panelBible2.Controls.Add(this.toolStripBible2);
            this.panelBible2.Location = new System.Drawing.Point(112, 3);
            this.panelBible2.Name = "panelBible2";
            this.panelBible2.Size = new System.Drawing.Size(24, 22);
            this.panelBible2.TabIndex = 7;
            // 
            // toolStripBible2
            // 
            this.toolStripBible2.AutoSize = false;
            this.toolStripBible2.CanOverflow = false;
            this.toolStripBible2.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripBible2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripBible2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Bibles_Go});
            this.toolStripBible2.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripBible2.Location = new System.Drawing.Point(0, -1);
            this.toolStripBible2.Name = "toolStripBible2";
            this.toolStripBible2.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripBible2.Size = new System.Drawing.Size(24, 25);
            this.toolStripBible2.TabIndex = 0;
            // 
            // Bibles_Go
            // 
            this.Bibles_Go.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Bibles_Go.Image = global::Properties.Resources.select;
            this.Bibles_Go.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Bibles_Go.Name = "Bibles_Go";
            this.Bibles_Go.Size = new System.Drawing.Size(23, 22);
            this.Bibles_Go.Tag = "tick";
            this.Bibles_Go.ToolTipText = "Select typed-in reference";
            this.Bibles_Go.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Bibles_Btn_MouseUp);
            // 
            // BookLookup
            // 
            this.BookLookup.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.BookLookup.FormattingEnabled = true;
            this.BookLookup.Location = new System.Drawing.Point(3, 3);
            this.BookLookup.MaxDropDownItems = 40;
            this.BookLookup.Name = "BookLookup";
            this.BookLookup.Size = new System.Drawing.Size(57, 21);
            this.BookLookup.TabIndex = 0;
            this.BookLookup.SelectedIndexChanged += new System.EventHandler(this.BookLookup_SelectedIndexChanged);
            // 
            // TabBibleVersions
            // 
            this.TabBibleVersions.Alignment = System.Windows.Forms.TabAlignment.Bottom;
            this.TabBibleVersions.Appearance = System.Windows.Forms.TabAppearance.Buttons;
            this.TabBibleVersions.Controls.Add(this.tabPage1);
            this.TabBibleVersions.Location = new System.Drawing.Point(3, 93);
            this.TabBibleVersions.Name = "TabBibleVersions";
            this.TabBibleVersions.SelectedIndex = 0;
            this.TabBibleVersions.Size = new System.Drawing.Size(84, 20);
            this.TabBibleVersions.TabIndex = 3;
            this.TabBibleVersions.Click += new System.EventHandler(this.TabBibleVersions_Click);
            // 
            // tabPage1
            // 
            this.tabPage1.Location = new System.Drawing.Point(4, 4);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage1.Size = new System.Drawing.Size(76, 0);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "No Bible";
            // 
            // tabImages
            // 
            this.tabImages.BackColor = System.Drawing.SystemColors.Control;
            this.tabImages.Controls.Add(this.flowLayoutImages);
            this.tabImages.Controls.Add(this.panelImagesTop);
            this.tabImages.Location = new System.Drawing.Point(4, 4);
            this.tabImages.Name = "tabImages";
            this.tabImages.Padding = new System.Windows.Forms.Padding(3);
            this.tabImages.Size = new System.Drawing.Size(326, 253);
            this.tabImages.TabIndex = 1;
            this.tabImages.Text = "Images";
            // 
            // flowLayoutImages
            // 
            this.flowLayoutImages.AutoScroll = true;
            this.flowLayoutImages.Location = new System.Drawing.Point(3, 35);
            this.flowLayoutImages.Name = "flowLayoutImages";
            this.flowLayoutImages.Size = new System.Drawing.Size(59, 35);
            this.flowLayoutImages.TabIndex = 2;
            // 
            // panelImagesTop
            // 
            this.panelImagesTop.Controls.Add(this.panelImage1);
            this.panelImagesTop.Controls.Add(this.ImagesFolder);
            this.panelImagesTop.Dock = System.Windows.Forms.DockStyle.Top;
            this.panelImagesTop.Location = new System.Drawing.Point(3, 3);
            this.panelImagesTop.Name = "panelImagesTop";
            this.panelImagesTop.Size = new System.Drawing.Size(320, 26);
            this.panelImagesTop.TabIndex = 2;
            // 
            // panelImage1
            // 
            this.panelImage1.Controls.Add(this.toolStripImage1);
            this.panelImage1.Location = new System.Drawing.Point(116, 1);
            this.panelImage1.Name = "panelImage1";
            this.panelImage1.Size = new System.Drawing.Size(49, 20);
            this.panelImage1.TabIndex = 19;
            // 
            // toolStripImage1
            // 
            this.toolStripImage1.AutoSize = false;
            this.toolStripImage1.CanOverflow = false;
            this.toolStripImage1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripImage1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripImage1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Image_OpenFolder,
            this.Image_Import});
            this.toolStripImage1.Location = new System.Drawing.Point(0, -1);
            this.toolStripImage1.Name = "toolStripImage1";
            this.toolStripImage1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripImage1.Size = new System.Drawing.Size(54, 24);
            this.toolStripImage1.TabIndex = 5;
            // 
            // Image_OpenFolder
            // 
            this.Image_OpenFolder.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Image_OpenFolder.Image = global::Properties.Resources.open;
            this.Image_OpenFolder.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Image_OpenFolder.Name = "Image_OpenFolder";
            this.Image_OpenFolder.Size = new System.Drawing.Size(23, 21);
            this.Image_OpenFolder.Tag = "";
            this.Image_OpenFolder.ToolTipText = "Open Folder";
            this.Image_OpenFolder.Click += new System.EventHandler(this.Image_OpenFolder_Click);
            // 
            // Image_Import
            // 
            this.Image_Import.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Image_Import.Image = global::Properties.Resources.import;
            this.Image_Import.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Image_Import.Name = "Image_Import";
            this.Image_Import.Size = new System.Drawing.Size(23, 21);
            this.Image_Import.Text = "Import An Image";
            this.Image_Import.Click += new System.EventHandler(this.Image_Import_Click);
            // 
            // ImagesFolder
            // 
            this.ImagesFolder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.ImagesFolder.FormattingEnabled = true;
            this.ImagesFolder.Location = new System.Drawing.Point(0, 0);
            this.ImagesFolder.MaxDropDownItems = 12;
            this.ImagesFolder.Name = "ImagesFolder";
            this.ImagesFolder.Size = new System.Drawing.Size(110, 21);
            this.ImagesFolder.TabIndex = 5;
            this.ImagesFolder.SelectedIndexChanged += new System.EventHandler(this.ImagesFolder_SelectedIndexChanged);
            // 
            // tabMedia
            // 
            this.tabMedia.BackColor = System.Drawing.SystemColors.Control;
            this.tabMedia.Controls.Add(this.panel11);
            this.tabMedia.Controls.Add(this.MediaList);
            this.tabMedia.Location = new System.Drawing.Point(4, 4);
            this.tabMedia.Name = "tabMedia";
            this.tabMedia.Size = new System.Drawing.Size(326, 253);
            this.tabMedia.TabIndex = 6;
            this.tabMedia.Text = "Media";
            // 
            // panel11
            // 
            this.panel11.Controls.Add(this.panelMedia1);
            this.panel11.Controls.Add(this.MediaFolder);
            this.panel11.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel11.Location = new System.Drawing.Point(0, 0);
            this.panel11.Name = "panel11";
            this.panel11.Size = new System.Drawing.Size(326, 26);
            this.panel11.TabIndex = 18;
            // 
            // panelMedia1
            // 
            this.panelMedia1.Controls.Add(this.toolStripMedia1);
            this.panelMedia1.Location = new System.Drawing.Point(115, 3);
            this.panelMedia1.Name = "panelMedia1";
            this.panelMedia1.Size = new System.Drawing.Size(50, 20);
            this.panelMedia1.TabIndex = 18;
            // 
            // toolStripMedia1
            // 
            this.toolStripMedia1.AutoSize = false;
            this.toolStripMedia1.CanOverflow = false;
            this.toolStripMedia1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripMedia1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripMedia1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Media_OpenFolder,
            this.Media_Import});
            this.toolStripMedia1.Location = new System.Drawing.Point(0, -1);
            this.toolStripMedia1.Name = "toolStripMedia1";
            this.toolStripMedia1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripMedia1.Size = new System.Drawing.Size(53, 24);
            this.toolStripMedia1.TabIndex = 5;
            // 
            // Media_OpenFolder
            // 
            this.Media_OpenFolder.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Media_OpenFolder.Image = global::Properties.Resources.open;
            this.Media_OpenFolder.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Media_OpenFolder.Name = "Media_OpenFolder";
            this.Media_OpenFolder.Size = new System.Drawing.Size(23, 21);
            this.Media_OpenFolder.Tag = "";
            this.Media_OpenFolder.ToolTipText = "Open Folder";
            this.Media_OpenFolder.Click += new System.EventHandler(this.Media_OpenFolder_Click);
            // 
            // Media_Import
            // 
            this.Media_Import.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Media_Import.Image = global::Properties.Resources.import;
            this.Media_Import.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Media_Import.Name = "Media_Import";
            this.Media_Import.Size = new System.Drawing.Size(23, 21);
            this.Media_Import.ToolTipText = "Import A Media File into Folder";
            this.Media_Import.Click += new System.EventHandler(this.Media_Import_Click);
            // 
            // MediaFolder
            // 
            this.MediaFolder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.MediaFolder.FormattingEnabled = true;
            this.MediaFolder.Location = new System.Drawing.Point(3, 3);
            this.MediaFolder.MaxDropDownItems = 12;
            this.MediaFolder.Name = "MediaFolder";
            this.MediaFolder.Size = new System.Drawing.Size(106, 21);
            this.MediaFolder.TabIndex = 17;
            this.MediaFolder.SelectedIndexChanged += new System.EventHandler(this.MediaFolder_SelectedIndexChanged);
            // 
            // MediaList
            // 
            this.MediaList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader37,
            this.columnHeader38,
            this.columnHeader39,
            this.columnHeader40,
            this.columnHeader41,
            this.columnHeader42,
            this.columnHeader43});
            this.MediaList.ContextMenuStrip = this.CMenuFiles;
            this.MediaList.FullRowSelect = true;
            this.MediaList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.MediaList.HideSelection = false;
            this.MediaList.LabelWrap = false;
            this.MediaList.Location = new System.Drawing.Point(3, 27);
            this.MediaList.Name = "MediaList";
            this.MediaList.ShowItemToolTips = true;
            this.MediaList.Size = new System.Drawing.Size(35, 74);
            this.MediaList.TabIndex = 17;
            this.MediaList.UseCompatibleStateImageBehavior = false;
            this.MediaList.View = System.Windows.Forms.View.Details;
            this.MediaList.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.MediaList_ItemDrag);
            this.MediaList.Enter += new System.EventHandler(this.FormControl_Enter);
            this.MediaList.KeyUp += new System.Windows.Forms.KeyEventHandler(this.MediaList_KeyUp);
            this.MediaList.Leave += new System.EventHandler(this.FormControl_Leave);
            this.MediaList.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.MediaList_MouseDoubleClick);
            this.MediaList.MouseUp += new System.Windows.Forms.MouseEventHandler(this.MediaList_MouseUp);
            // 
            // columnHeader38
            // 
            this.columnHeader38.Width = 0;
            // 
            // columnHeader39
            // 
            this.columnHeader39.Width = 0;
            // 
            // columnHeader40
            // 
            this.columnHeader40.Width = 0;
            // 
            // columnHeader41
            // 
            this.columnHeader41.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.columnHeader41.Width = 0;
            // 
            // columnHeader42
            // 
            this.columnHeader42.Width = 0;
            // 
            // columnHeader43
            // 
            this.columnHeader43.Width = 0;
            // 
            // tabDefault
            // 
            this.tabDefault.BackColor = System.Drawing.SystemColors.Control;
            this.tabDefault.Controls.Add(this.DefPanel);
            this.tabDefault.Location = new System.Drawing.Point(4, 4);
            this.tabDefault.Name = "tabDefault";
            this.tabDefault.Size = new System.Drawing.Size(326, 253);
            this.tabDefault.TabIndex = 3;
            this.tabDefault.Text = "Default";
            // 
            // DefPanel
            // 
            this.DefPanel.AutoScroll = true;
            this.DefPanel.Controls.Add(this.panelDefTemplate);
            this.DefPanel.Controls.Add(this.DefApplyDefaultsBtn);
            this.DefPanel.Controls.Add(this.DefgroupBox2);
            this.DefPanel.Controls.Add(this.DefgroupBox3);
            this.DefPanel.Controls.Add(this.DefgroupBox1);
            this.DefPanel.Location = new System.Drawing.Point(3, 3);
            this.DefPanel.Name = "DefPanel";
            this.DefPanel.Size = new System.Drawing.Size(230, 277);
            this.DefPanel.TabIndex = 3;
            // 
            // panelDefTemplate
            // 
            this.panelDefTemplate.Controls.Add(this.toolStripDefTemplates);
            this.panelDefTemplate.Location = new System.Drawing.Point(175, 3);
            this.panelDefTemplate.Name = "panelDefTemplate";
            this.panelDefTemplate.Size = new System.Drawing.Size(48, 22);
            this.panelDefTemplate.TabIndex = 11;
            // 
            // toolStripDefTemplates
            // 
            this.toolStripDefTemplates.AutoSize = false;
            this.toolStripDefTemplates.CanOverflow = false;
            this.toolStripDefTemplates.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripDefTemplates.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripDefTemplates.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_LoadTemplate,
            this.Def_SaveTemplate});
            this.toolStripDefTemplates.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripDefTemplates.Location = new System.Drawing.Point(0, -1);
            this.toolStripDefTemplates.Name = "toolStripDefTemplates";
            this.toolStripDefTemplates.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripDefTemplates.Size = new System.Drawing.Size(50, 25);
            this.toolStripDefTemplates.TabIndex = 0;
            // 
            // Def_LoadTemplate
            // 
            this.Def_LoadTemplate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_LoadTemplate.Image = global::Properties.Resources.open;
            this.Def_LoadTemplate.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_LoadTemplate.Name = "Def_LoadTemplate";
            this.Def_LoadTemplate.Size = new System.Drawing.Size(23, 22);
            this.Def_LoadTemplate.ToolTipText = "Load Settings Template";
            this.Def_LoadTemplate.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_SaveTemplate
            // 
            this.Def_SaveTemplate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_SaveTemplate.Image = global::Properties.Resources.save;
            this.Def_SaveTemplate.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_SaveTemplate.Name = "Def_SaveTemplate";
            this.Def_SaveTemplate.Size = new System.Drawing.Size(23, 22);
            this.Def_SaveTemplate.ToolTipText = "Save Settings as a Template";
            this.Def_SaveTemplate.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // DefApplyDefaultsBtn
            // 
            this.DefApplyDefaultsBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.DefApplyDefaultsBtn.Location = new System.Drawing.Point(3, 3);
            this.DefApplyDefaultsBtn.Name = "DefApplyDefaultsBtn";
            this.DefApplyDefaultsBtn.Size = new System.Drawing.Size(172, 23);
            this.DefApplyDefaultsBtn.TabIndex = 0;
            this.DefApplyDefaultsBtn.Text = "Apply to All Except InfoScreens";
            this.toolTip1.SetToolTip(this.DefApplyDefaultsBtn, "Apply Defaults to all on Worship List except InfoScreen Items");
            this.DefApplyDefaultsBtn.Click += new System.EventHandler(this.DefApplyDefaultsBtn_Click);
            // 
            // DefgroupBox2
            // 
            this.DefgroupBox2.Controls.Add(this.panelDef4);
            this.DefgroupBox2.Controls.Add(this.panelDef3);
            this.DefgroupBox2.Location = new System.Drawing.Point(3, 103);
            this.DefgroupBox2.Name = "DefgroupBox2";
            this.DefgroupBox2.Size = new System.Drawing.Size(222, 72);
            this.DefgroupBox2.TabIndex = 2;
            this.DefgroupBox2.TabStop = false;
            this.DefgroupBox2.Text = "Default Background";
            // 
            // panelDef4
            // 
            this.panelDef4.Controls.Add(this.toolStripDef4);
            this.panelDef4.Location = new System.Drawing.Point(6, 44);
            this.panelDef4.Name = "panelDef4";
            this.panelDef4.Size = new System.Drawing.Size(204, 22);
            this.panelDef4.TabIndex = 11;
            // 
            // toolStripDef4
            // 
            this.toolStripDef4.AutoSize = false;
            this.toolStripDef4.CanOverflow = false;
            this.toolStripDef4.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripDef4.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripDef4.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_TransItem,
            this.Def_TransSlides});
            this.toolStripDef4.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripDef4.Location = new System.Drawing.Point(0, -1);
            this.toolStripDef4.Name = "toolStripDef4";
            this.toolStripDef4.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripDef4.Size = new System.Drawing.Size(210, 25);
            this.toolStripDef4.TabIndex = 5;
            // 
            // Def_TransItem
            // 
            this.Def_TransItem.AutoSize = false;
            this.Def_TransItem.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Def_TransItem.MaxDropDownItems = 24;
            this.Def_TransItem.Name = "Def_TransItem";
            this.Def_TransItem.Size = new System.Drawing.Size(100, 23);
            this.Def_TransItem.ToolTipText = "Item Transition";
            this.Def_TransItem.SelectedIndexChanged += new System.EventHandler(this.Def_TransSelectedIndexChanged);
            // 
            // Def_TransSlides
            // 
            this.Def_TransSlides.AutoSize = false;
            this.Def_TransSlides.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Def_TransSlides.MaxDropDownItems = 24;
            this.Def_TransSlides.Name = "Def_TransSlides";
            this.Def_TransSlides.Size = new System.Drawing.Size(100, 23);
            this.Def_TransSlides.ToolTipText = "Slide Transition";
            this.Def_TransSlides.SelectedIndexChanged += new System.EventHandler(this.Def_TransSelectedIndexChanged);
            // 
            // panelDef3
            // 
            this.panelDef3.Controls.Add(this.toolStripDef3);
            this.panelDef3.Location = new System.Drawing.Point(6, 18);
            this.panelDef3.Name = "panelDef3";
            this.panelDef3.Size = new System.Drawing.Size(204, 22);
            this.panelDef3.TabIndex = 10;
            // 
            // toolStripDef3
            // 
            this.toolStripDef3.AutoSize = false;
            this.toolStripDef3.CanOverflow = false;
            this.toolStripDef3.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripDef3.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripDef3.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_ImageMode,
            this.Def_NoImage,
            this.Def_BackColour,
            this.Def_AssignMedia});
            this.toolStripDef3.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripDef3.Location = new System.Drawing.Point(0, -1);
            this.toolStripDef3.Name = "toolStripDef3";
            this.toolStripDef3.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripDef3.Size = new System.Drawing.Size(210, 25);
            this.toolStripDef3.TabIndex = 0;
            // 
            // Def_ImageMode
            // 
            this.Def_ImageMode.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_ImageMode.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_ImageTile,
            this.Def_ImageCentre,
            this.Def_ImageBestFit});
            this.Def_ImageMode.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_ImageMode.Name = "Def_ImageMode";
            this.Def_ImageMode.Size = new System.Drawing.Size(13, 22);
            this.Def_ImageMode.Tag = "2";
            this.Def_ImageMode.ToolTipText = "Background Picture Format";
            this.Def_ImageMode.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Def_ImageMode_DropDownItemClicked);
            // 
            // Def_ImageTile
            // 
            this.Def_ImageTile.Image = global::Properties.Resources.titleImage;
            this.Def_ImageTile.Name = "Def_ImageTile";
            this.Def_ImageTile.Size = new System.Drawing.Size(148, 22);
            this.Def_ImageTile.Tag = "0";
            this.Def_ImageTile.Text = "Tile Image";
            // 
            // Def_ImageCentre
            // 
            this.Def_ImageCentre.Image = global::Properties.Resources.centerImage;
            this.Def_ImageCentre.Name = "Def_ImageCentre";
            this.Def_ImageCentre.Size = new System.Drawing.Size(148, 22);
            this.Def_ImageCentre.Tag = "1";
            this.Def_ImageCentre.Text = "Centre Image";
            // 
            // Def_ImageBestFit
            // 
            this.Def_ImageBestFit.Image = global::Properties.Resources.background;
            this.Def_ImageBestFit.Name = "Def_ImageBestFit";
            this.Def_ImageBestFit.Size = new System.Drawing.Size(148, 22);
            this.Def_ImageBestFit.Tag = "2";
            this.Def_ImageBestFit.Text = "Best Fit Image";
            // 
            // Def_NoImage
            // 
            this.Def_NoImage.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_NoImage.Image = global::Properties.Resources.not_available;
            this.Def_NoImage.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_NoImage.Name = "Def_NoImage";
            this.Def_NoImage.Size = new System.Drawing.Size(23, 22);
            this.Def_NoImage.ToolTipText = "No Background Picture";
            this.Def_NoImage.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_BackColour
            // 
            this.Def_BackColour.AutoSize = false;
            this.Def_BackColour.BackColor = System.Drawing.SystemColors.ActiveBorder;
            this.Def_BackColour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Def_BackColour.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_BackColour.Name = "Def_BackColour";
            this.Def_BackColour.Size = new System.Drawing.Size(46, 22);
            this.Def_BackColour.Text = "Colours";
            this.Def_BackColour.ToolTipText = "Background Colours and Patterns";
            this.Def_BackColour.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_AssignMedia
            // 
            this.Def_AssignMedia.AutoSize = false;
            this.Def_AssignMedia.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Def_AssignMedia.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_AssignMedia.Name = "Def_AssignMedia";
            this.Def_AssignMedia.Size = new System.Drawing.Size(106, 22);
            this.Def_AssignMedia.Text = "Media";
            this.Def_AssignMedia.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // DefgroupBox3
            // 
            this.DefgroupBox3.Controls.Add(this.panel21);
            this.DefgroupBox3.Controls.Add(this.Def_PanelHeight);
            this.DefgroupBox3.Controls.Add(this.panelDef5);
            this.DefgroupBox3.Controls.Add(this.panelDef6);
            this.DefgroupBox3.Controls.Add(this.label5);
            this.DefgroupBox3.Location = new System.Drawing.Point(3, 177);
            this.DefgroupBox3.Name = "DefgroupBox3";
            this.DefgroupBox3.Size = new System.Drawing.Size(222, 95);
            this.DefgroupBox3.TabIndex = 3;
            this.DefgroupBox3.TabStop = false;
            this.DefgroupBox3.Text = "Display Panel";
            // 
            // panel21
            // 
            this.panel21.Controls.Add(this.toolStripDef7);
            this.panel21.Location = new System.Drawing.Point(6, 69);
            this.panel21.Name = "panel21";
            this.panel21.Size = new System.Drawing.Size(209, 22);
            this.panel21.TabIndex = 13;
            // 
            // toolStripDef7
            // 
            this.toolStripDef7.AutoSize = false;
            this.toolStripDef7.CanOverflow = false;
            this.toolStripDef7.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripDef7.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripDef7.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_PanelFontBold,
            this.Def_PanelFontItalics,
            this.Def_PanelFontUnderline,
            this.Def_PanelFontShadow,
            this.Def_PanelFontOutline,
            this.Def_PanelFontList});
            this.toolStripDef7.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripDef7.Location = new System.Drawing.Point(0, -1);
            this.toolStripDef7.Name = "toolStripDef7";
            this.toolStripDef7.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripDef7.Size = new System.Drawing.Size(209, 25);
            this.toolStripDef7.TabIndex = 0;
            // 
            // Def_PanelFontBold
            // 
            this.Def_PanelFontBold.CheckOnClick = true;
            this.Def_PanelFontBold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelFontBold.Image = global::Properties.Resources.bold1;
            this.Def_PanelFontBold.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelFontBold.Name = "Def_PanelFontBold";
            this.Def_PanelFontBold.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelFontBold.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelFontItalics
            // 
            this.Def_PanelFontItalics.CheckOnClick = true;
            this.Def_PanelFontItalics.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelFontItalics.Image = global::Properties.Resources.italic;
            this.Def_PanelFontItalics.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelFontItalics.Name = "Def_PanelFontItalics";
            this.Def_PanelFontItalics.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelFontItalics.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelFontUnderline
            // 
            this.Def_PanelFontUnderline.CheckOnClick = true;
            this.Def_PanelFontUnderline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelFontUnderline.Image = global::Properties.Resources.underline1;
            this.Def_PanelFontUnderline.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelFontUnderline.Name = "Def_PanelFontUnderline";
            this.Def_PanelFontUnderline.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelFontUnderline.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelFontShadow
            // 
            this.Def_PanelFontShadow.CheckOnClick = true;
            this.Def_PanelFontShadow.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelFontShadow.Image = global::Properties.Resources.shadow;
            this.Def_PanelFontShadow.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelFontShadow.Name = "Def_PanelFontShadow";
            this.Def_PanelFontShadow.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelFontShadow.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelFontOutline
            // 
            this.Def_PanelFontOutline.CheckOnClick = true;
            this.Def_PanelFontOutline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelFontOutline.Image = global::Properties.Resources.border_all;
            this.Def_PanelFontOutline.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelFontOutline.Name = "Def_PanelFontOutline";
            this.Def_PanelFontOutline.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelFontOutline.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelFontList
            // 
            this.Def_PanelFontList.DropDownWidth = 150;
            this.Def_PanelFontList.Name = "Def_PanelFontList";
            this.Def_PanelFontList.Size = new System.Drawing.Size(92, 25);
            this.Def_PanelFontList.SelectedIndexChanged += new System.EventHandler(this.Def_PanelFontList_SelectedIndexChanged);
            // 
            // Def_PanelHeight
            // 
            this.Def_PanelHeight.Location = new System.Drawing.Point(178, 45);
            this.Def_PanelHeight.Name = "Def_PanelHeight";
            this.Def_PanelHeight.Size = new System.Drawing.Size(37, 20);
            this.Def_PanelHeight.TabIndex = 12;
            this.Def_PanelHeight.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_PanelHeight_MouseUp);
            // 
            // panelDef5
            // 
            this.panelDef5.Controls.Add(this.toolStripDef5);
            this.panelDef5.Location = new System.Drawing.Point(6, 18);
            this.panelDef5.Name = "panelDef5";
            this.panelDef5.Size = new System.Drawing.Size(204, 22);
            this.panelDef5.TabIndex = 10;
            // 
            // toolStripDef5
            // 
            this.toolStripDef5.AutoSize = false;
            this.toolStripDef5.CanOverflow = false;
            this.toolStripDef5.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripDef5.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripDef5.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_PanelAsR1,
            this.Def_PanelTextColour,
            this.toolStripSeparator14,
            this.Def_PanelTransparent,
            this.Def_PanelBackColour});
            this.toolStripDef5.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripDef5.Location = new System.Drawing.Point(0, -1);
            this.toolStripDef5.Name = "toolStripDef5";
            this.toolStripDef5.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripDef5.Size = new System.Drawing.Size(204, 25);
            this.toolStripDef5.TabIndex = 0;
            // 
            // Def_PanelAsR1
            // 
            this.Def_PanelAsR1.CheckOnClick = true;
            this.Def_PanelAsR1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelAsR1.Image = global::Properties.Resources.number_1;
            this.Def_PanelAsR1.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelAsR1.Name = "Def_PanelAsR1";
            this.Def_PanelAsR1.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelAsR1.ToolTipText = "Text Colour As Region 1";
            this.Def_PanelAsR1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelTextColour
            // 
            this.Def_PanelTextColour.AutoSize = false;
            this.Def_PanelTextColour.BackColor = System.Drawing.SystemColors.ActiveBorder;
            this.Def_PanelTextColour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Def_PanelTextColour.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelTextColour.Name = "Def_PanelTextColour";
            this.Def_PanelTextColour.Size = new System.Drawing.Size(75, 22);
            this.Def_PanelTextColour.Text = "Text Colour";
            this.Def_PanelTextColour.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // toolStripSeparator14
            // 
            this.toolStripSeparator14.Name = "toolStripSeparator14";
            this.toolStripSeparator14.Size = new System.Drawing.Size(6, 25);
            // 
            // Def_PanelTransparent
            // 
            this.Def_PanelTransparent.CheckOnClick = true;
            this.Def_PanelTransparent.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelTransparent.Image = global::Properties.Resources.transparent;
            this.Def_PanelTransparent.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelTransparent.Name = "Def_PanelTransparent";
            this.Def_PanelTransparent.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelTransparent.ToolTipText = "Transparent Background";
            this.Def_PanelTransparent.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelBackColour
            // 
            this.Def_PanelBackColour.AutoSize = false;
            this.Def_PanelBackColour.BackColor = System.Drawing.SystemColors.ActiveBorder;
            this.Def_PanelBackColour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Def_PanelBackColour.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelBackColour.Name = "Def_PanelBackColour";
            this.Def_PanelBackColour.Size = new System.Drawing.Size(75, 22);
            this.Def_PanelBackColour.Text = "Back Colour";
            this.Def_PanelBackColour.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // panelDef6
            // 
            this.panelDef6.Controls.Add(this.toolStripDef6);
            this.panelDef6.Location = new System.Drawing.Point(6, 43);
            this.panelDef6.Name = "panelDef6";
            this.panelDef6.Size = new System.Drawing.Size(139, 22);
            this.panelDef6.TabIndex = 9;
            // 
            // toolStripDef6
            // 
            this.toolStripDef6.AutoSize = false;
            this.toolStripDef6.CanOverflow = false;
            this.toolStripDef6.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripDef6.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripDef6.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_PanelShow,
            this.Def_PanelTitle,
            this.Def_PanelCopyright,
            this.Def_PanelSong,
            this.Def_PanelSlides,
            this.Def_PanelPrevNext});
            this.toolStripDef6.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripDef6.Location = new System.Drawing.Point(0, -1);
            this.toolStripDef6.Name = "toolStripDef6";
            this.toolStripDef6.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripDef6.Size = new System.Drawing.Size(146, 25);
            this.toolStripDef6.TabIndex = 0;
            // 
            // Def_PanelShow
            // 
            this.Def_PanelShow.CheckOnClick = true;
            this.Def_PanelShow.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelShow.Image = global::Properties.Resources.view;
            this.Def_PanelShow.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelShow.Name = "Def_PanelShow";
            this.Def_PanelShow.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelShow.Tag = "list";
            this.Def_PanelShow.ToolTipText = "Show Display Panel";
            this.Def_PanelShow.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelTitle
            // 
            this.Def_PanelTitle.CheckOnClick = true;
            this.Def_PanelTitle.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelTitle.Image = global::Properties.Resources.title;
            this.Def_PanelTitle.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelTitle.Name = "Def_PanelTitle";
            this.Def_PanelTitle.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelTitle.ToolTipText = "Show Title";
            this.Def_PanelTitle.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelCopyright
            // 
            this.Def_PanelCopyright.CheckOnClick = true;
            this.Def_PanelCopyright.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelCopyright.Image = global::Properties.Resources.information;
            this.Def_PanelCopyright.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelCopyright.Name = "Def_PanelCopyright";
            this.Def_PanelCopyright.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelCopyright.ToolTipText = "Show Copyright Information";
            this.Def_PanelCopyright.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelSong
            // 
            this.Def_PanelSong.CheckOnClick = true;
            this.Def_PanelSong.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelSong.Image = global::Properties.Resources.number;
            this.Def_PanelSong.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelSong.Name = "Def_PanelSong";
            this.Def_PanelSong.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelSong.Tag = "add";
            this.Def_PanelSong.ToolTipText = "Show Item Number";
            this.Def_PanelSong.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelSlides
            // 
            this.Def_PanelSlides.CheckOnClick = true;
            this.Def_PanelSlides.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelSlides.Image = global::Properties.Resources.powerpoint;
            this.Def_PanelSlides.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelSlides.Name = "Def_PanelSlides";
            this.Def_PanelSlides.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelSlides.Tag = "open";
            this.Def_PanelSlides.ToolTipText = "Show Verse/Slide Indicators";
            this.Def_PanelSlides.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_PanelPrevNext
            // 
            this.Def_PanelPrevNext.CheckOnClick = true;
            this.Def_PanelPrevNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_PanelPrevNext.Image = global::Properties.Resources.leftAndright;
            this.Def_PanelPrevNext.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_PanelPrevNext.Name = "Def_PanelPrevNext";
            this.Def_PanelPrevNext.Size = new System.Drawing.Size(23, 22);
            this.Def_PanelPrevNext.ToolTipText = "Show Previous/Next Item";
            this.Def_PanelPrevNext.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(142, 48);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(38, 13);
            this.label5.TabIndex = 7;
            this.label5.Text = "Height";
            // 
            // DefgroupBox1
            // 
            this.DefgroupBox1.Controls.Add(this.panelDef2);
            this.DefgroupBox1.Controls.Add(this.panelDef1);
            this.DefgroupBox1.Location = new System.Drawing.Point(3, 29);
            this.DefgroupBox1.Name = "DefgroupBox1";
            this.DefgroupBox1.Size = new System.Drawing.Size(222, 72);
            this.DefgroupBox1.TabIndex = 1;
            this.DefgroupBox1.TabStop = false;
            this.DefgroupBox1.Text = "Default Layout";
            // 
            // panelDef2
            // 
            this.panelDef2.Controls.Add(this.toolStripDef2);
            this.panelDef2.Location = new System.Drawing.Point(6, 43);
            this.panelDef2.Name = "panelDef2";
            this.panelDef2.Size = new System.Drawing.Size(208, 22);
            this.panelDef2.TabIndex = 9;
            // 
            // toolStripDef2
            // 
            this.toolStripDef2.AutoSize = false;
            this.toolStripDef2.CanOverflow = false;
            this.toolStripDef2.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripDef2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripDef2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_HeadAlign,
            this.toolStripSeparator26,
            this.Def_R1Align,
            this.Def_R1Colour,
            this.toolStripSeparator8,
            this.Def_R2Align,
            this.Def_R2Colour});
            this.toolStripDef2.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripDef2.Location = new System.Drawing.Point(0, -1);
            this.toolStripDef2.Name = "toolStripDef2";
            this.toolStripDef2.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripDef2.Size = new System.Drawing.Size(209, 25);
            this.toolStripDef2.TabIndex = 0;
            // 
            // Def_HeadAlign
            // 
            this.Def_HeadAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_HeadAlign.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_HeadAlignAsR1,
            this.Def_HeadAlignAsR2,
            this.Def_HeadAlignLeft,
            this.Def_HeadAlignCentre,
            this.Def_HeadAlignRight});
            this.Def_HeadAlign.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_HeadAlign.Name = "Def_HeadAlign";
            this.Def_HeadAlign.Size = new System.Drawing.Size(13, 22);
            this.Def_HeadAlign.Tag = "0";
            this.Def_HeadAlign.Text = "toolStripDropDownButton1";
            this.Def_HeadAlign.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Def_HeadAlign_DropDownItemClicked);
            // 
            // Def_HeadAlignAsR1
            // 
            this.Def_HeadAlignAsR1.Image = global::Properties.Resources.heading1;
            this.Def_HeadAlignAsR1.Name = "Def_HeadAlignAsR1";
            this.Def_HeadAlignAsR1.Size = new System.Drawing.Size(220, 22);
            this.Def_HeadAlignAsR1.Tag = "0";
            this.Def_HeadAlignAsR1.Text = "Headings Align As Region 1";
            // 
            // Def_HeadAlignAsR2
            // 
            this.Def_HeadAlignAsR2.Image = global::Properties.Resources.heading2;
            this.Def_HeadAlignAsR2.Name = "Def_HeadAlignAsR2";
            this.Def_HeadAlignAsR2.Size = new System.Drawing.Size(220, 22);
            this.Def_HeadAlignAsR2.Tag = "1";
            this.Def_HeadAlignAsR2.Text = "Headings Align As Region 2";
            // 
            // Def_HeadAlignLeft
            // 
            this.Def_HeadAlignLeft.Image = global::Properties.Resources.align_left;
            this.Def_HeadAlignLeft.Name = "Def_HeadAlignLeft";
            this.Def_HeadAlignLeft.Size = new System.Drawing.Size(220, 22);
            this.Def_HeadAlignLeft.Tag = "2";
            this.Def_HeadAlignLeft.Text = "Headings Align Left";
            // 
            // Def_HeadAlignCentre
            // 
            this.Def_HeadAlignCentre.Image = global::Properties.Resources.align_center;
            this.Def_HeadAlignCentre.Name = "Def_HeadAlignCentre";
            this.Def_HeadAlignCentre.Size = new System.Drawing.Size(220, 22);
            this.Def_HeadAlignCentre.Tag = "3";
            this.Def_HeadAlignCentre.Text = "Headings Align Centre";
            // 
            // Def_HeadAlignRight
            // 
            this.Def_HeadAlignRight.Image = global::Properties.Resources.align_right;
            this.Def_HeadAlignRight.Name = "Def_HeadAlignRight";
            this.Def_HeadAlignRight.Size = new System.Drawing.Size(220, 22);
            this.Def_HeadAlignRight.Tag = "4";
            this.Def_HeadAlignRight.Text = "Headings Align Right";
            // 
            // toolStripSeparator26
            // 
            this.toolStripSeparator26.Name = "toolStripSeparator26";
            this.toolStripSeparator26.Size = new System.Drawing.Size(6, 25);
            // 
            // Def_R1Align
            // 
            this.Def_R1Align.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_R1Align.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_R1AlignLeft,
            this.Def_R1AlignCentre,
            this.Def_R1AlignRight});
            this.Def_R1Align.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_R1Align.Name = "Def_R1Align";
            this.Def_R1Align.Size = new System.Drawing.Size(13, 22);
            this.Def_R1Align.Tag = "2";
            this.Def_R1Align.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Def_R1Align_DropDownItemClicked);
            // 
            // Def_R1AlignLeft
            // 
            this.Def_R1AlignLeft.Image = global::Properties.Resources.align_left;
            this.Def_R1AlignLeft.Name = "Def_R1AlignLeft";
            this.Def_R1AlignLeft.Size = new System.Drawing.Size(189, 22);
            this.Def_R1AlignLeft.Tag = "1";
            this.Def_R1AlignLeft.Text = "Region 1 Align Left";
            // 
            // Def_R1AlignCentre
            // 
            this.Def_R1AlignCentre.Image = global::Properties.Resources.align_center;
            this.Def_R1AlignCentre.Name = "Def_R1AlignCentre";
            this.Def_R1AlignCentre.Size = new System.Drawing.Size(189, 22);
            this.Def_R1AlignCentre.Tag = "2";
            this.Def_R1AlignCentre.Text = "Region 1 Align Centre";
            // 
            // Def_R1AlignRight
            // 
            this.Def_R1AlignRight.Image = global::Properties.Resources.align_right;
            this.Def_R1AlignRight.Name = "Def_R1AlignRight";
            this.Def_R1AlignRight.Size = new System.Drawing.Size(189, 22);
            this.Def_R1AlignRight.Tag = "3";
            this.Def_R1AlignRight.Text = "Region 1 Align Right";
            // 
            // Def_R1Colour
            // 
            this.Def_R1Colour.AutoSize = false;
            this.Def_R1Colour.BackColor = System.Drawing.SystemColors.ActiveBorder;
            this.Def_R1Colour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Def_R1Colour.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_R1Colour.Name = "Def_R1Colour";
            this.Def_R1Colour.Size = new System.Drawing.Size(54, 22);
            this.Def_R1Colour.Text = "R1 Col";
            this.Def_R1Colour.ToolTipText = "Region 1 Text Colour";
            this.Def_R1Colour.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // toolStripSeparator8
            // 
            this.toolStripSeparator8.Name = "toolStripSeparator8";
            this.toolStripSeparator8.Size = new System.Drawing.Size(6, 25);
            // 
            // Def_R2Align
            // 
            this.Def_R2Align.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_R2Align.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_R2AlignLeft,
            this.Def_R2AlignCentre,
            this.Def_R2AlignRight});
            this.Def_R2Align.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_R2Align.Name = "Def_R2Align";
            this.Def_R2Align.Size = new System.Drawing.Size(13, 22);
            this.Def_R2Align.Tag = "2";
            this.Def_R2Align.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Def_R2Align_DropDownItemClicked);
            // 
            // Def_R2AlignLeft
            // 
            this.Def_R2AlignLeft.Image = global::Properties.Resources.align_left;
            this.Def_R2AlignLeft.Name = "Def_R2AlignLeft";
            this.Def_R2AlignLeft.Size = new System.Drawing.Size(189, 22);
            this.Def_R2AlignLeft.Tag = "1";
            this.Def_R2AlignLeft.Text = "Region 2 Align Left";
            // 
            // Def_R2AlignCentre
            // 
            this.Def_R2AlignCentre.Image = global::Properties.Resources.align_center;
            this.Def_R2AlignCentre.Name = "Def_R2AlignCentre";
            this.Def_R2AlignCentre.Size = new System.Drawing.Size(189, 22);
            this.Def_R2AlignCentre.Tag = "2";
            this.Def_R2AlignCentre.Text = "Region 2 Align Centre";
            // 
            // Def_R2AlignRight
            // 
            this.Def_R2AlignRight.Image = global::Properties.Resources.align_right;
            this.Def_R2AlignRight.Name = "Def_R2AlignRight";
            this.Def_R2AlignRight.Size = new System.Drawing.Size(189, 22);
            this.Def_R2AlignRight.Tag = "3";
            this.Def_R2AlignRight.Text = "Region 2 Align Right";
            // 
            // Def_R2Colour
            // 
            this.Def_R2Colour.AutoSize = false;
            this.Def_R2Colour.BackColor = System.Drawing.SystemColors.ActiveBorder;
            this.Def_R2Colour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Def_R2Colour.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_R2Colour.Name = "Def_R2Colour";
            this.Def_R2Colour.Size = new System.Drawing.Size(54, 22);
            this.Def_R2Colour.Text = "R2 Col";
            this.Def_R2Colour.ToolTipText = "Region 2 Text Colour";
            this.Def_R2Colour.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // panelDef1
            // 
            this.panelDef1.Controls.Add(this.toolStripDef1);
            this.panelDef1.Location = new System.Drawing.Point(6, 18);
            this.panelDef1.Name = "panelDef1";
            this.panelDef1.Size = new System.Drawing.Size(210, 22);
            this.panelDef1.TabIndex = 8;
            // 
            // toolStripDef1
            // 
            this.toolStripDef1.AutoSize = false;
            this.toolStripDef1.CanOverflow = false;
            this.toolStripDef1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripDef1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripDef1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_Head,
            this.Def_Region,
            this.Def_VAlign,
            this.Def_Shadow,
            this.Def_Outline,
            this.Def_Interlace,
            this.Def_Notations,
            this.Def_ToZero});
            this.toolStripDef1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripDef1.Location = new System.Drawing.Point(0, -1);
            this.toolStripDef1.Name = "toolStripDef1";
            this.toolStripDef1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripDef1.Size = new System.Drawing.Size(210, 25);
            this.toolStripDef1.TabIndex = 0;
            // 
            // Def_Head
            // 
            this.Def_Head.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_Head.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_HeadNoTitles,
            this.Def_HeadAllTitles,
            this.Def_HeadFirstScreen});
            this.Def_Head.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_Head.Name = "Def_Head";
            this.Def_Head.Size = new System.Drawing.Size(13, 22);
            this.Def_Head.Tag = "1";
            this.Def_Head.ToolTipText = "Display Title/Verse Headings";
            this.Def_Head.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Def_Head_DropDownItemClicked);
            // 
            // Def_HeadNoTitles
            // 
            this.Def_HeadNoTitles.Image = global::Properties.Resources.stop;
            this.Def_HeadNoTitles.Name = "Def_HeadNoTitles";
            this.Def_HeadNoTitles.Size = new System.Drawing.Size(225, 22);
            this.Def_HeadNoTitles.Tag = "0";
            this.Def_HeadNoTitles.Text = "No Headings";
            // 
            // Def_HeadAllTitles
            // 
            this.Def_HeadAllTitles.Image = global::Properties.Resources.allHeading;
            this.Def_HeadAllTitles.Name = "Def_HeadAllTitles";
            this.Def_HeadAllTitles.Size = new System.Drawing.Size(225, 22);
            this.Def_HeadAllTitles.Tag = "1";
            this.Def_HeadAllTitles.Text = "Show All Headings";
            // 
            // Def_HeadFirstScreen
            // 
            this.Def_HeadFirstScreen.Image = global::Properties.Resources.heading1;
            this.Def_HeadFirstScreen.Name = "Def_HeadFirstScreen";
            this.Def_HeadFirstScreen.Size = new System.Drawing.Size(225, 22);
            this.Def_HeadFirstScreen.Tag = "2";
            this.Def_HeadFirstScreen.Text = "Heading At First Screen Only";
            // 
            // Def_Region
            // 
            this.Def_Region.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_Region.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_ShowRegion1,
            this.Def_ShowRegion2,
            this.Def_ShowRegionBoth});
            this.Def_Region.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_Region.Name = "Def_Region";
            this.Def_Region.Size = new System.Drawing.Size(13, 22);
            this.Def_Region.Tag = "2";
            this.Def_Region.ToolTipText = "Show Region Text";
            this.Def_Region.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Def_Region_DropDownItemClicked);
            // 
            // Def_ShowRegion1
            // 
            this.Def_ShowRegion1.Image = global::Properties.Resources.number_1;
            this.Def_ShowRegion1.Name = "Def_ShowRegion1";
            this.Def_ShowRegion1.Size = new System.Drawing.Size(157, 22);
            this.Def_ShowRegion1.Tag = "0";
            this.Def_ShowRegion1.Text = "Region 1 Only";
            // 
            // Def_ShowRegion2
            // 
            this.Def_ShowRegion2.Image = global::Properties.Resources.number_2;
            this.Def_ShowRegion2.Name = "Def_ShowRegion2";
            this.Def_ShowRegion2.Size = new System.Drawing.Size(157, 22);
            this.Def_ShowRegion2.Tag = "1";
            this.Def_ShowRegion2.Text = "Region 2 Only";
            // 
            // Def_ShowRegionBoth
            // 
            this.Def_ShowRegionBoth.Image = global::Properties.Resources.cube;
            this.Def_ShowRegionBoth.Name = "Def_ShowRegionBoth";
            this.Def_ShowRegionBoth.Size = new System.Drawing.Size(157, 22);
            this.Def_ShowRegionBoth.Tag = "2";
            this.Def_ShowRegionBoth.Text = "Regions 1 and 2";
            // 
            // Def_VAlign
            // 
            this.Def_VAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_VAlign.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Def_VAlignTop,
            this.Def_VAlignCentre,
            this.Def_VAlignBottom});
            this.Def_VAlign.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_VAlign.Name = "Def_VAlign";
            this.Def_VAlign.Size = new System.Drawing.Size(13, 22);
            this.Def_VAlign.Tag = "1";
            this.Def_VAlign.ToolTipText = "Vertical Alignment";
            this.Def_VAlign.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Def_VAlign_DropDownItemClicked);
            // 
            // Def_VAlignTop
            // 
            this.Def_VAlignTop.Image = global::Properties.Resources.align_top;
            this.Def_VAlignTop.Name = "Def_VAlignTop";
            this.Def_VAlignTop.Size = new System.Drawing.Size(145, 22);
            this.Def_VAlignTop.Tag = "0";
            this.Def_VAlignTop.Text = "Align Top";
            // 
            // Def_VAlignCentre
            // 
            this.Def_VAlignCentre.Image = global::Properties.Resources.align_center;
            this.Def_VAlignCentre.Name = "Def_VAlignCentre";
            this.Def_VAlignCentre.Size = new System.Drawing.Size(145, 22);
            this.Def_VAlignCentre.Tag = "1";
            this.Def_VAlignCentre.Text = "Align Centre";
            // 
            // Def_VAlignBottom
            // 
            this.Def_VAlignBottom.Image = global::Properties.Resources.align_bottom;
            this.Def_VAlignBottom.Name = "Def_VAlignBottom";
            this.Def_VAlignBottom.Size = new System.Drawing.Size(145, 22);
            this.Def_VAlignBottom.Tag = "2";
            this.Def_VAlignBottom.Text = "Align Bottom";
            // 
            // Def_Shadow
            // 
            this.Def_Shadow.CheckOnClick = true;
            this.Def_Shadow.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_Shadow.Image = global::Properties.Resources.shadow;
            this.Def_Shadow.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_Shadow.Name = "Def_Shadow";
            this.Def_Shadow.Size = new System.Drawing.Size(23, 22);
            this.Def_Shadow.Tag = "open";
            this.Def_Shadow.ToolTipText = "Shadow Font";
            this.Def_Shadow.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_Outline
            // 
            this.Def_Outline.CheckOnClick = true;
            this.Def_Outline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_Outline.Image = global::Properties.Resources.border_all;
            this.Def_Outline.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_Outline.Name = "Def_Outline";
            this.Def_Outline.Size = new System.Drawing.Size(23, 22);
            this.Def_Outline.Tag = "add";
            this.Def_Outline.ToolTipText = "Outline Font";
            this.Def_Outline.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_Interlace
            // 
            this.Def_Interlace.CheckOnClick = true;
            this.Def_Interlace.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_Interlace.Image = global::Properties.Resources.cube;
            this.Def_Interlace.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_Interlace.Name = "Def_Interlace";
            this.Def_Interlace.Size = new System.Drawing.Size(23, 22);
            this.Def_Interlace.ToolTipText = "Interlace Region1/Regions2";
            this.Def_Interlace.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_Notations
            // 
            this.Def_Notations.CheckOnClick = true;
            this.Def_Notations.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_Notations.Image = global::Properties.Resources.fullscreen;
            this.Def_Notations.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_Notations.Name = "Def_Notations";
            this.Def_Notations.Size = new System.Drawing.Size(23, 22);
            this.Def_Notations.ToolTipText = "Show Notations";
            this.Def_Notations.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // Def_ToZero
            // 
            this.Def_ToZero.CheckOnClick = true;
            this.Def_ToZero.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Def_ToZero.Image = global::Properties.Resources.jump1;
            this.Def_ToZero.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Def_ToZero.Name = "Def_ToZero";
            this.Def_ToZero.Size = new System.Drawing.Size(23, 22);
            this.Def_ToZero.ToolTipText = "To Capo 0";
            this.Def_ToZero.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Def_Items_MouseUp);
            // 
            // tabControlLists
            // 
            this.tabControlLists.Alignment = System.Windows.Forms.TabAlignment.Bottom;
            this.tabControlLists.Controls.Add(this.tabWorshipList);
            this.tabControlLists.Controls.Add(this.tabPraiseBook);
            this.tabControlLists.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControlLists.Location = new System.Drawing.Point(0, 0);
            this.tabControlLists.Name = "tabControlLists";
            this.tabControlLists.Padding = new System.Drawing.Point(5, 3);
            this.tabControlLists.SelectedIndex = 0;
            this.tabControlLists.Size = new System.Drawing.Size(334, 128);
            this.tabControlLists.TabIndex = 0;
            this.tabControlLists.SelectedIndexChanged += new System.EventHandler(this.tabControlLists_SelectedIndexChanged);
            this.tabControlLists.Resize += new System.EventHandler(this.tabControlLists_Resize);
            // 
            // tabWorshipList
            // 
            this.tabWorshipList.BackColor = System.Drawing.SystemColors.Control;
            this.tabWorshipList.Controls.Add(this.panelWorshipList2);
            this.tabWorshipList.Controls.Add(this.panelWorshipList1);
            this.tabWorshipList.Controls.Add(this.WorshipListItems);
            this.tabWorshipList.Controls.Add(this.SessionList);
            this.tabWorshipList.Location = new System.Drawing.Point(4, 4);
            this.tabWorshipList.Name = "tabWorshipList";
            this.tabWorshipList.Padding = new System.Windows.Forms.Padding(3);
            this.tabWorshipList.Size = new System.Drawing.Size(326, 102);
            this.tabWorshipList.TabIndex = 0;
            this.tabWorshipList.Text = "Worship List";
            // 
            // panelWorshipList2
            // 
            this.panelWorshipList2.Controls.Add(this.toolStripWorshipList2);
            this.panelWorshipList2.Location = new System.Drawing.Point(235, 29);
            this.panelWorshipList2.Name = "panelWorshipList2";
            this.panelWorshipList2.Size = new System.Drawing.Size(25, 136);
            this.panelWorshipList2.TabIndex = 11;
            // 
            // toolStripWorshipList2
            // 
            this.toolStripWorshipList2.AutoSize = false;
            this.toolStripWorshipList2.CanOverflow = false;
            this.toolStripWorshipList2.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripWorshipList2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripWorshipList2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.WL_Up,
            this.WL_Down,
            this.WL_Delete,
            this.toolStripSeparator6,
            this.WL_Word,
            this.WL_Notes});
            this.toolStripWorshipList2.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow;
            this.toolStripWorshipList2.Location = new System.Drawing.Point(0, 0);
            this.toolStripWorshipList2.Name = "toolStripWorshipList2";
            this.toolStripWorshipList2.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripWorshipList2.Size = new System.Drawing.Size(25, 138);
            this.toolStripWorshipList2.TabIndex = 0;
            // 
            // WL_Up
            // 
            this.WL_Up.AutoSize = false;
            this.WL_Up.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.WL_Up.Image = global::Properties.Resources.moveUp;
            this.WL_Up.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.WL_Up.Name = "WL_Up";
            this.WL_Up.Size = new System.Drawing.Size(22, 22);
            this.WL_Up.Tag = "up";
            this.WL_Up.ToolTipText = "Move Item Up";
            this.WL_Up.MouseUp += new System.Windows.Forms.MouseEventHandler(this.WL_Btn_MouseUp);
            // 
            // WL_Down
            // 
            this.WL_Down.AutoSize = false;
            this.WL_Down.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.WL_Down.Image = global::Properties.Resources.moveDown;
            this.WL_Down.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.WL_Down.Name = "WL_Down";
            this.WL_Down.Size = new System.Drawing.Size(22, 22);
            this.WL_Down.Tag = "down";
            this.WL_Down.ToolTipText = "Move Item Down";
            this.WL_Down.MouseUp += new System.Windows.Forms.MouseEventHandler(this.WL_Btn_MouseUp);
            // 
            // WL_Delete
            // 
            this.WL_Delete.AutoSize = false;
            this.WL_Delete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.WL_Delete.Image = global::Properties.Resources.deleteW;
            this.WL_Delete.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.WL_Delete.Name = "WL_Delete";
            this.WL_Delete.Size = new System.Drawing.Size(22, 22);
            this.WL_Delete.Tag = "delete";
            this.WL_Delete.ToolTipText = "Delete";
            this.WL_Delete.MouseUp += new System.Windows.Forms.MouseEventHandler(this.WL_Btn_MouseUp);
            // 
            // toolStripSeparator6
            // 
            this.toolStripSeparator6.Name = "toolStripSeparator6";
            this.toolStripSeparator6.Size = new System.Drawing.Size(23, 6);
            // 
            // WL_Word
            // 
            this.WL_Word.AutoSize = false;
            this.WL_Word.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.WL_Word.Image = global::Properties.Resources.word;
            this.WL_Word.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.WL_Word.Name = "WL_Word";
            this.WL_Word.Size = new System.Drawing.Size(22, 22);
            this.WL_Word.Tag = "word";
            this.WL_Word.ToolTipText = "Generate RTF Document";
            this.WL_Word.MouseUp += new System.Windows.Forms.MouseEventHandler(this.WL_Btn_MouseUp);
            // 
            // WL_Notes
            // 
            this.WL_Notes.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.WL_Notes.Image = global::Properties.Resources.note;
            this.WL_Notes.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.WL_Notes.Name = "WL_Notes";
            this.WL_Notes.Size = new System.Drawing.Size(23, 20);
            this.WL_Notes.ToolTipText = "Edit Session Notes";
            this.WL_Notes.MouseUp += new System.Windows.Forms.MouseEventHandler(this.WL_Btn_MouseUp);
            // 
            // panelWorshipList1
            // 
            this.panelWorshipList1.Controls.Add(this.toolStripWorshipList1);
            this.panelWorshipList1.Location = new System.Drawing.Point(66, 3);
            this.panelWorshipList1.Name = "panelWorshipList1";
            this.panelWorshipList1.Size = new System.Drawing.Size(70, 22);
            this.panelWorshipList1.TabIndex = 7;
            // 
            // toolStripWorshipList1
            // 
            this.toolStripWorshipList1.AutoSize = false;
            this.toolStripWorshipList1.CanOverflow = false;
            this.toolStripWorshipList1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripWorshipList1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripWorshipList1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.WL_Manage,
            this.WL_Add,
            this.WL_Open});
            this.toolStripWorshipList1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripWorshipList1.Location = new System.Drawing.Point(0, -1);
            this.toolStripWorshipList1.Name = "toolStripWorshipList1";
            this.toolStripWorshipList1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripWorshipList1.Size = new System.Drawing.Size(83, 25);
            this.toolStripWorshipList1.TabIndex = 0;
            // 
            // WL_Manage
            // 
            this.WL_Manage.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.WL_Manage.Image = global::Properties.Resources.database;
            this.WL_Manage.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.WL_Manage.Name = "WL_Manage";
            this.WL_Manage.Size = new System.Drawing.Size(23, 22);
            this.WL_Manage.Tag = "list";
            this.WL_Manage.ToolTipText = "Manage Worship Lists";
            this.WL_Manage.MouseUp += new System.Windows.Forms.MouseEventHandler(this.WL_Btn_MouseUp);
            // 
            // WL_Add
            // 
            this.WL_Add.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.WL_Add.Image = global::Properties.Resources.new1;
            this.WL_Add.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.WL_Add.Name = "WL_Add";
            this.WL_Add.Size = new System.Drawing.Size(23, 22);
            this.WL_Add.Tag = "add";
            this.WL_Add.ToolTipText = "Add to Worship List";
            this.WL_Add.MouseUp += new System.Windows.Forms.MouseEventHandler(this.WL_Btn_MouseUp);
            // 
            // WL_Open
            // 
            this.WL_Open.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.WL_Open.Image = global::Properties.Resources.open;
            this.WL_Open.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.WL_Open.Name = "WL_Open";
            this.WL_Open.Size = new System.Drawing.Size(23, 22);
            this.WL_Open.Tag = "open";
            this.WL_Open.ToolTipText = "Add External Document to Worship List";
            this.WL_Open.MouseUp += new System.Windows.Forms.MouseEventHandler(this.WL_Btn_MouseUp);
            // 
            // WorshipListItems
            // 
            this.WorshipListItems.AllowDrop = true;
            this.WorshipListItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader8,
            this.columnHeader9,
            this.columnHeader10,
            this.columnHeader11,
            this.columnHeader12,
            this.columnHeader13,
            this.columnHeader14});
            this.WorshipListItems.ContextMenuStrip = this.CMenuWorship;
            this.WorshipListItems.FullRowSelect = true;
            this.WorshipListItems.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.WorshipListItems.HideSelection = false;
            this.WorshipListItems.LabelWrap = false;
            this.WorshipListItems.LargeImageList = this.imageList1;
            this.WorshipListItems.Location = new System.Drawing.Point(3, 27);
            this.WorshipListItems.Name = "WorshipListItems";
            this.WorshipListItems.ShowItemToolTips = true;
            this.WorshipListItems.Size = new System.Drawing.Size(146, 74);
            this.WorshipListItems.SmallImageList = this.imageList1;
            this.WorshipListItems.TabIndex = 1;
            this.WorshipListItems.UseCompatibleStateImageBehavior = false;
            this.WorshipListItems.View = System.Windows.Forms.View.Details;
            this.WorshipListItems.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.WorshipList_ItemDrag);
            this.WorshipListItems.DragDrop += new System.Windows.Forms.DragEventHandler(this.WorshipList_DragDrop);
            this.WorshipListItems.DragEnter += new System.Windows.Forms.DragEventHandler(this.WorshipList_DragEnter);
            this.WorshipListItems.DragOver += new System.Windows.Forms.DragEventHandler(this.WorshipList_DragOver);
            this.WorshipListItems.DragLeave += new System.EventHandler(this.WorshipList_DragLeave);
            this.WorshipListItems.DoubleClick += new System.EventHandler(this.WorshipListItems_DoubleClick);
            this.WorshipListItems.Enter += new System.EventHandler(this.FormControl_Enter);
            this.WorshipListItems.KeyUp += new System.Windows.Forms.KeyEventHandler(this.WorshipList_KeyUp);
            this.WorshipListItems.Leave += new System.EventHandler(this.FormControl_Leave);
            this.WorshipListItems.MouseUp += new System.Windows.Forms.MouseEventHandler(this.WorshipList_MouseUp);
            // 
            // columnHeader8
            // 
            this.columnHeader8.Text = "";
            // 
            // columnHeader9
            // 
            this.columnHeader9.Text = "";
            this.columnHeader9.Width = 0;
            // 
            // columnHeader10
            // 
            this.columnHeader10.Width = 0;
            // 
            // columnHeader11
            // 
            this.columnHeader11.Width = 0;
            // 
            // columnHeader12
            // 
            this.columnHeader12.Width = 0;
            // 
            // columnHeader13
            // 
            this.columnHeader13.Width = 0;
            // 
            // columnHeader14
            // 
            this.columnHeader14.Width = 0;
            // 
            // CMenuWorship
            // 
            this.CMenuWorship.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.CMenuWorship_SelectAll,
            this.CMenuWorship_UnselectAll,
            this.CMenuWorship_Clear,
            this.toolStripSeparator39,
            this.CMenuWorship_Edit,
            this.CMenuWorship_Play,
            this.toolStripSeparator37,
            this.CMenuWorship_AddUsages});
            this.CMenuWorship.Name = "ContextMenuBibleText";
            this.CMenuWorship.Size = new System.Drawing.Size(186, 148);
            // 
            // CMenuWorship_SelectAll
            // 
            this.CMenuWorship_SelectAll.Name = "CMenuWorship_SelectAll";
            this.CMenuWorship_SelectAll.Size = new System.Drawing.Size(185, 22);
            this.CMenuWorship_SelectAll.Text = "Select &All";
            this.CMenuWorship_SelectAll.Click += new System.EventHandler(this.CMenuWorship_SelectAll_Click);
            // 
            // CMenuWorship_UnselectAll
            // 
            this.CMenuWorship_UnselectAll.Name = "CMenuWorship_UnselectAll";
            this.CMenuWorship_UnselectAll.Size = new System.Drawing.Size(185, 22);
            this.CMenuWorship_UnselectAll.Text = "&Unselect All";
            this.CMenuWorship_UnselectAll.Click += new System.EventHandler(this.CMenuWorship_UnselectAll_Click);
            // 
            // CMenuWorship_Clear
            // 
            this.CMenuWorship_Clear.Name = "CMenuWorship_Clear";
            this.CMenuWorship_Clear.Size = new System.Drawing.Size(185, 22);
            this.CMenuWorship_Clear.Text = "Clear Worship List";
            this.CMenuWorship_Clear.Click += new System.EventHandler(this.CMenuWorship_Clear_Click);
            // 
            // toolStripSeparator39
            // 
            this.toolStripSeparator39.Name = "toolStripSeparator39";
            this.toolStripSeparator39.Size = new System.Drawing.Size(182, 6);
            // 
            // CMenuWorship_Edit
            // 
            this.CMenuWorship_Edit.Name = "CMenuWorship_Edit";
            this.CMenuWorship_Edit.Size = new System.Drawing.Size(185, 22);
            this.CMenuWorship_Edit.Text = "Edit item";
            this.CMenuWorship_Edit.Click += new System.EventHandler(this.CMenuWorship_Edit_Click);
            // 
            // CMenuWorship_Play
            // 
            this.CMenuWorship_Play.Name = "CMenuWorship_Play";
            this.CMenuWorship_Play.Size = new System.Drawing.Size(185, 22);
            this.CMenuWorship_Play.Text = "Play Media";
            this.CMenuWorship_Play.Click += new System.EventHandler(this.CMenuWorship_Play_Click);
            // 
            // toolStripSeparator37
            // 
            this.toolStripSeparator37.Name = "toolStripSeparator37";
            this.toolStripSeparator37.Size = new System.Drawing.Size(182, 6);
            // 
            // CMenuWorship_AddUsages
            // 
            this.CMenuWorship_AddUsages.Name = "CMenuWorship_AddUsages";
            this.CMenuWorship_AddUsages.Size = new System.Drawing.Size(185, 22);
            this.CMenuWorship_AddUsages.Text = "Add Songs to Usages";
            this.CMenuWorship_AddUsages.Click += new System.EventHandler(this.CMenuWorship_AddUsages_Click);
            // 
            // imageList1
            // 
            this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "Music.png");
            this.imageList1.Images.SetKeyName(1, "star.png");
            this.imageList1.Images.SetKeyName(2, "Monitor.png");
            this.imageList1.Images.SetKeyName(3, "Monitor.png");
            this.imageList1.Images.SetKeyName(4, "Monitor.png");
            this.imageList1.Images.SetKeyName(5, "Monitor.png");
            this.imageList1.Images.SetKeyName(6, "camera_close.png");
            this.imageList1.Images.SetKeyName(7, "camera_add.png");
            this.imageList1.Images.SetKeyName(8, "view.png");
            this.imageList1.Images.SetKeyName(9, "view.png");
            this.imageList1.Images.SetKeyName(10, "movie.png");
            this.imageList1.Images.SetKeyName(11, "powerpoint1.png");
            this.imageList1.Images.SetKeyName(12, "Word.png");
            this.imageList1.Images.SetKeyName(13, "text.png");
            this.imageList1.Images.SetKeyName(14, "multiple_monitors.png");
            this.imageList1.Images.SetKeyName(15, "monitor_screen.png");
            this.imageList1.Images.SetKeyName(16, "keyboard.png");
            // 
            // SessionList
            // 
            this.SessionList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.SessionList.FormattingEnabled = true;
            this.SessionList.Location = new System.Drawing.Point(3, 3);
            this.SessionList.MaxDropDownItems = 12;
            this.SessionList.Name = "SessionList";
            this.SessionList.Size = new System.Drawing.Size(57, 21);
            this.SessionList.TabIndex = 0;
            this.SessionList.SelectedValueChanged += new System.EventHandler(this.SessionList_SelectedValueChanged);
            // 
            // tabPraiseBook
            // 
            this.tabPraiseBook.BackColor = System.Drawing.SystemColors.Control;
            this.tabPraiseBook.Controls.Add(this.panelPraiseBook2);
            this.tabPraiseBook.Controls.Add(this.panelPraiseBook1);
            this.tabPraiseBook.Controls.Add(this.PraiseBookItems);
            this.tabPraiseBook.Controls.Add(this.PraiseBook);
            this.tabPraiseBook.Location = new System.Drawing.Point(4, 4);
            this.tabPraiseBook.Name = "tabPraiseBook";
            this.tabPraiseBook.Padding = new System.Windows.Forms.Padding(3);
            this.tabPraiseBook.Size = new System.Drawing.Size(326, 102);
            this.tabPraiseBook.TabIndex = 1;
            this.tabPraiseBook.Text = "Praise Book";
            // 
            // panelPraiseBook2
            // 
            this.panelPraiseBook2.Controls.Add(this.toolStripPraiseBook2);
            this.panelPraiseBook2.Location = new System.Drawing.Point(44, 27);
            this.panelPraiseBook2.Name = "panelPraiseBook2";
            this.panelPraiseBook2.Size = new System.Drawing.Size(25, 86);
            this.panelPraiseBook2.TabIndex = 12;
            // 
            // toolStripPraiseBook2
            // 
            this.toolStripPraiseBook2.AutoSize = false;
            this.toolStripPraiseBook2.CanOverflow = false;
            this.toolStripPraiseBook2.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripPraiseBook2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripPraiseBook2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripSeparator22,
            this.PB_Delete,
            this.toolStripSeparator7,
            this.PB_Word,
            this.PB_Html});
            this.toolStripPraiseBook2.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow;
            this.toolStripPraiseBook2.Location = new System.Drawing.Point(0, 0);
            this.toolStripPraiseBook2.Name = "toolStripPraiseBook2";
            this.toolStripPraiseBook2.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripPraiseBook2.Size = new System.Drawing.Size(25, 88);
            this.toolStripPraiseBook2.TabIndex = 0;
            // 
            // toolStripSeparator22
            // 
            this.toolStripSeparator22.Name = "toolStripSeparator22";
            this.toolStripSeparator22.Size = new System.Drawing.Size(23, 6);
            // 
            // PB_Delete
            // 
            this.PB_Delete.AutoSize = false;
            this.PB_Delete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.PB_Delete.Image = global::Properties.Resources.deletered;
            this.PB_Delete.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.PB_Delete.Name = "PB_Delete";
            this.PB_Delete.Size = new System.Drawing.Size(23, 22);
            this.PB_Delete.Tag = "delete";
            this.PB_Delete.ToolTipText = "Delete";
            this.PB_Delete.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PB_Btn_MouseUp);
            // 
            // toolStripSeparator7
            // 
            this.toolStripSeparator7.Name = "toolStripSeparator7";
            this.toolStripSeparator7.Size = new System.Drawing.Size(23, 6);
            // 
            // PB_Word
            // 
            this.PB_Word.AutoSize = false;
            this.PB_Word.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.PB_Word.Image = global::Properties.Resources.word1;
            this.PB_Word.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.PB_Word.Name = "PB_Word";
            this.PB_Word.Size = new System.Drawing.Size(22, 22);
            this.PB_Word.Tag = "word";
            this.PB_Word.ToolTipText = "Generate RTF Document";
            this.PB_Word.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PB_Btn_MouseUp);
            // 
            // PB_Html
            // 
            this.PB_Html.AutoSize = false;
            this.PB_Html.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.PB_Html.Image = global::Properties.Resources.IE;
            this.PB_Html.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.PB_Html.Name = "PB_Html";
            this.PB_Html.Size = new System.Drawing.Size(22, 22);
            this.PB_Html.Tag = "ie";
            this.PB_Html.ToolTipText = "Generate HTML Document";
            this.PB_Html.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PB_Btn_MouseUp);
            // 
            // panelPraiseBook1
            // 
            this.panelPraiseBook1.Controls.Add(this.toolStripPraiseBook1);
            this.panelPraiseBook1.Location = new System.Drawing.Point(66, 3);
            this.panelPraiseBook1.Name = "panelPraiseBook1";
            this.panelPraiseBook1.Size = new System.Drawing.Size(70, 22);
            this.panelPraiseBook1.TabIndex = 10;
            // 
            // toolStripPraiseBook1
            // 
            this.toolStripPraiseBook1.AutoSize = false;
            this.toolStripPraiseBook1.CanOverflow = false;
            this.toolStripPraiseBook1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripPraiseBook1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripPraiseBook1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.PB_Manage,
            this.PB_Add,
            this.PB_WordCount});
            this.toolStripPraiseBook1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripPraiseBook1.Location = new System.Drawing.Point(0, -1);
            this.toolStripPraiseBook1.Name = "toolStripPraiseBook1";
            this.toolStripPraiseBook1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripPraiseBook1.Size = new System.Drawing.Size(83, 25);
            this.toolStripPraiseBook1.TabIndex = 0;
            // 
            // PB_Manage
            // 
            this.PB_Manage.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.PB_Manage.Image = global::Properties.Resources.database;
            this.PB_Manage.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.PB_Manage.Name = "PB_Manage";
            this.PB_Manage.Size = new System.Drawing.Size(23, 22);
            this.PB_Manage.Tag = "list";
            this.PB_Manage.ToolTipText = "Manage PraiseBooks";
            this.PB_Manage.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PB_Btn_MouseUp);
            // 
            // PB_Add
            // 
            this.PB_Add.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.PB_Add.Image = global::Properties.Resources.new1;
            this.PB_Add.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.PB_Add.Name = "PB_Add";
            this.PB_Add.Size = new System.Drawing.Size(23, 22);
            this.PB_Add.Tag = "add";
            this.PB_Add.ToolTipText = "Add to PraiseBook";
            this.PB_Add.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PB_Btn_MouseUp);
            // 
            // PB_WordCount
            // 
            this.PB_WordCount.CheckOnClick = true;
            this.PB_WordCount.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.PB_WordCount.Image = global::Properties.Resources.sort;
            this.PB_WordCount.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.PB_WordCount.Name = "PB_WordCount";
            this.PB_WordCount.Size = new System.Drawing.Size(23, 22);
            this.PB_WordCount.Tag = "wordcount";
            this.PB_WordCount.ToolTipText = "Sort by CJK Word Count";
            this.PB_WordCount.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PB_Btn_MouseUp);
            // 
            // PraiseBookItems
            // 
            this.PraiseBookItems.AllowDrop = true;
            this.PraiseBookItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader17,
            this.columnHeader18,
            this.columnHeader19,
            this.columnHeader20,
            this.columnHeader21,
            this.columnHeader22});
            this.PraiseBookItems.ContextMenuStrip = this.CMenuPraiseB;
            this.PraiseBookItems.FullRowSelect = true;
            this.PraiseBookItems.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.PraiseBookItems.HideSelection = false;
            this.PraiseBookItems.LabelWrap = false;
            this.PraiseBookItems.Location = new System.Drawing.Point(3, 27);
            this.PraiseBookItems.Name = "PraiseBookItems";
            this.PraiseBookItems.ShowItemToolTips = true;
            this.PraiseBookItems.Size = new System.Drawing.Size(35, 74);
            this.PraiseBookItems.Sorting = System.Windows.Forms.SortOrder.Ascending;
            this.PraiseBookItems.TabIndex = 1;
            this.PraiseBookItems.UseCompatibleStateImageBehavior = false;
            this.PraiseBookItems.View = System.Windows.Forms.View.Details;
            this.PraiseBookItems.DragDrop += new System.Windows.Forms.DragEventHandler(this.PraiseBookItems_DragDrop);
            this.PraiseBookItems.DragEnter += new System.Windows.Forms.DragEventHandler(this.PraiseBookItems_DragEnter);
            this.PraiseBookItems.Enter += new System.EventHandler(this.FormControl_Enter);
            this.PraiseBookItems.KeyUp += new System.Windows.Forms.KeyEventHandler(this.PraiseBookItems_KeyUp);
            this.PraiseBookItems.Leave += new System.EventHandler(this.FormControl_Leave);
            this.PraiseBookItems.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PraiseBookItems_MouseUp);
            // 
            // columnHeader17
            // 
            this.columnHeader17.Width = 0;
            // 
            // columnHeader18
            // 
            this.columnHeader18.Width = 0;
            // 
            // columnHeader19
            // 
            this.columnHeader19.Width = 0;
            // 
            // columnHeader20
            // 
            this.columnHeader20.Width = 0;
            // 
            // columnHeader21
            // 
            this.columnHeader21.Width = 0;
            // 
            // columnHeader22
            // 
            this.columnHeader22.Width = 0;
            // 
            // CMenuPraiseB
            // 
            this.CMenuPraiseB.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.CMenuPraiseB_SelectAll,
            this.CMenuPraiseB_UnselectAll,
            this.CMenuPraiseB_Clear,
            this.toolStripSeparator36,
            this.CMenuPraiseB_Edit});
            this.CMenuPraiseB.Name = "ContextMenuBibleText";
            this.CMenuPraiseB.Size = new System.Drawing.Size(184, 98);
            // 
            // CMenuPraiseB_SelectAll
            // 
            this.CMenuPraiseB_SelectAll.Name = "CMenuPraiseB_SelectAll";
            this.CMenuPraiseB_SelectAll.Size = new System.Drawing.Size(183, 22);
            this.CMenuPraiseB_SelectAll.Text = "Select &All";
            this.CMenuPraiseB_SelectAll.Click += new System.EventHandler(this.CMenuPraiseB_SelectAll_Click);
            // 
            // CMenuPraiseB_UnselectAll
            // 
            this.CMenuPraiseB_UnselectAll.Name = "CMenuPraiseB_UnselectAll";
            this.CMenuPraiseB_UnselectAll.Size = new System.Drawing.Size(183, 22);
            this.CMenuPraiseB_UnselectAll.Text = "&Unselect All";
            this.CMenuPraiseB_UnselectAll.Click += new System.EventHandler(this.CMenuPraiseB_UnselectAll_Click);
            // 
            // CMenuPraiseB_Clear
            // 
            this.CMenuPraiseB_Clear.Name = "CMenuPraiseB_Clear";
            this.CMenuPraiseB_Clear.Size = new System.Drawing.Size(183, 22);
            this.CMenuPraiseB_Clear.Text = "Clear PraiseBook List";
            this.CMenuPraiseB_Clear.Click += new System.EventHandler(this.CMenuPraiseB_Clear_Click);
            // 
            // toolStripSeparator36
            // 
            this.toolStripSeparator36.Name = "toolStripSeparator36";
            this.toolStripSeparator36.Size = new System.Drawing.Size(180, 6);
            // 
            // CMenuPraiseB_Edit
            // 
            this.CMenuPraiseB_Edit.Name = "CMenuPraiseB_Edit";
            this.CMenuPraiseB_Edit.Size = new System.Drawing.Size(183, 22);
            this.CMenuPraiseB_Edit.Text = "Edit item";
            this.CMenuPraiseB_Edit.Click += new System.EventHandler(this.CMenuPraiseB_Edit_Click);
            // 
            // PraiseBook
            // 
            this.PraiseBook.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.PraiseBook.FormattingEnabled = true;
            this.PraiseBook.Location = new System.Drawing.Point(3, 3);
            this.PraiseBook.MaxDropDownItems = 12;
            this.PraiseBook.Name = "PraiseBook";
            this.PraiseBook.Size = new System.Drawing.Size(57, 21);
            this.PraiseBook.TabIndex = 0;
            this.PraiseBook.SelectedIndexChanged += new System.EventHandler(this.PraiseBook_SelectedIndexChanged);
            // 
            // splitContainer2
            // 
            this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer2.Location = new System.Drawing.Point(0, 0);
            this.splitContainer2.Name = "splitContainer2";
            // 
            // splitContainer2.Panel1
            // 
            this.splitContainer2.Panel1.Controls.Add(this.splitContainerPreview);
            // 
            // splitContainer2.Panel2
            // 
            this.splitContainer2.Panel2.Controls.Add(this.splitContainerOutput);
            this.splitContainer2.Size = new System.Drawing.Size(601, 418);
            this.splitContainer2.SplitterDistance = 358;
            this.splitContainer2.SplitterWidth = 3;
            this.splitContainer2.TabIndex = 0;
            this.splitContainer2.Text = "splitContainer2";
            // 
            // splitContainerPreview
            // 
            this.splitContainerPreview.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainerPreview.Location = new System.Drawing.Point(0, 0);
            this.splitContainerPreview.Name = "splitContainerPreview";
            this.splitContainerPreview.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainerPreview.Panel1
            // 
            this.splitContainerPreview.Panel1.Controls.Add(this.panelPreviewTop);
            this.splitContainerPreview.Panel1.Controls.Add(this.panel9);
            this.splitContainerPreview.Panel1MinSize = 50;
            // 
            // splitContainerPreview.Panel2
            // 
            this.splitContainerPreview.Panel2.BackColor = System.Drawing.SystemColors.Control;
            this.splitContainerPreview.Panel2.Controls.Add(this.panelPreviewBottom);
            this.splitContainerPreview.Panel2.Controls.Add(this.panel7);
            this.splitContainerPreview.Panel2.Controls.Add(this.panel1);
            this.splitContainerPreview.Size = new System.Drawing.Size(354, 414);
            this.splitContainerPreview.SplitterDistance = 370;
            this.splitContainerPreview.SplitterWidth = 3;
            this.splitContainerPreview.TabIndex = 0;
            this.splitContainerPreview.Text = "splitContainer3";
            // 
            // panelPreviewTop
            // 
            this.panelPreviewTop.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panelPreviewTop.Controls.Add(this.IndPanel);
            this.panelPreviewTop.Controls.Add(this.PreviewInfo);
            this.panelPreviewTop.Controls.Add(this.flowLayoutPreviewLyrics);
            this.panelPreviewTop.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panelPreviewTop.Location = new System.Drawing.Point(0, 22);
            this.panelPreviewTop.Name = "panelPreviewTop";
            this.panelPreviewTop.Size = new System.Drawing.Size(354, 348);
            this.panelPreviewTop.TabIndex = 1;
            this.panelPreviewTop.Resize += new System.EventHandler(this.panelPreviewTop_Resize);
            // 
            // IndPanel
            // 
            this.IndPanel.AutoScroll = true;
            this.IndPanel.Controls.Add(this.panelIndTemplate);
            this.IndPanel.Controls.Add(this.IndgroupBox4);
            this.IndPanel.Controls.Add(this.IndgroupBox3);
            this.IndPanel.Controls.Add(this.IndgroupBox2);
            this.IndPanel.Controls.Add(this.IndgroupBox1);
            this.IndPanel.Controls.Add(this.Ind_checkBox);
            this.IndPanel.Location = new System.Drawing.Point(7, 6);
            this.IndPanel.Name = "IndPanel";
            this.IndPanel.Size = new System.Drawing.Size(335, 338);
            this.IndPanel.TabIndex = 2;
            // 
            // panelIndTemplate
            // 
            this.panelIndTemplate.Controls.Add(this.toolStripIndTemplates);
            this.panelIndTemplate.Location = new System.Drawing.Point(150, 3);
            this.panelIndTemplate.Name = "panelIndTemplate";
            this.panelIndTemplate.Size = new System.Drawing.Size(48, 22);
            this.panelIndTemplate.TabIndex = 12;
            // 
            // toolStripIndTemplates
            // 
            this.toolStripIndTemplates.AutoSize = false;
            this.toolStripIndTemplates.CanOverflow = false;
            this.toolStripIndTemplates.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripIndTemplates.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripIndTemplates.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_LoadTemplate,
            this.Ind_SaveTemplate});
            this.toolStripIndTemplates.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripIndTemplates.Location = new System.Drawing.Point(0, -1);
            this.toolStripIndTemplates.Name = "toolStripIndTemplates";
            this.toolStripIndTemplates.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripIndTemplates.Size = new System.Drawing.Size(50, 25);
            this.toolStripIndTemplates.TabIndex = 0;
            // 
            // Ind_LoadTemplate
            // 
            this.Ind_LoadTemplate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_LoadTemplate.Image = global::Properties.Resources.open;
            this.Ind_LoadTemplate.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_LoadTemplate.Name = "Ind_LoadTemplate";
            this.Ind_LoadTemplate.Size = new System.Drawing.Size(23, 22);
            this.Ind_LoadTemplate.ToolTipText = "Load Settings Template";
            this.Ind_LoadTemplate.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // Ind_SaveTemplate
            // 
            this.Ind_SaveTemplate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_SaveTemplate.Image = global::Properties.Resources.save;
            this.Ind_SaveTemplate.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_SaveTemplate.Name = "Ind_SaveTemplate";
            this.Ind_SaveTemplate.Size = new System.Drawing.Size(23, 22);
            this.Ind_SaveTemplate.ToolTipText = "Save Settings as a Template";
            this.Ind_SaveTemplate.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // IndgroupBox4
            // 
            this.IndgroupBox4.Controls.Add(this.panelInd7);
            this.IndgroupBox4.Controls.Add(this.Ind_Reg2SizeUpDown);
            this.IndgroupBox4.Controls.Add(this.label6);
            this.IndgroupBox4.Controls.Add(this.Ind_Reg2TopUpDown);
            this.IndgroupBox4.Controls.Add(this.panelInd6);
            this.IndgroupBox4.Controls.Add(this.label7);
            this.IndgroupBox4.Location = new System.Drawing.Point(6, 264);
            this.IndgroupBox4.Name = "IndgroupBox4";
            this.IndgroupBox4.Size = new System.Drawing.Size(309, 72);
            this.IndgroupBox4.TabIndex = 3;
            this.IndgroupBox4.TabStop = false;
            this.IndgroupBox4.Text = "Region 2";
            // 
            // panelInd7
            // 
            this.panelInd7.Controls.Add(this.toolStripInd7);
            this.panelInd7.Location = new System.Drawing.Point(7, 43);
            this.panelInd7.Name = "panelInd7";
            this.panelInd7.Size = new System.Drawing.Size(151, 22);
            this.panelInd7.TabIndex = 12;
            // 
            // toolStripInd7
            // 
            this.toolStripInd7.AutoSize = false;
            this.toolStripInd7.CanOverflow = false;
            this.toolStripInd7.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripInd7.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripInd7.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_Reg2FontsList});
            this.toolStripInd7.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripInd7.Location = new System.Drawing.Point(0, -1);
            this.toolStripInd7.Name = "toolStripInd7";
            this.toolStripInd7.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripInd7.Size = new System.Drawing.Size(155, 25);
            this.toolStripInd7.TabIndex = 5;
            // 
            // Ind_Reg2FontsList
            // 
            this.Ind_Reg2FontsList.AutoSize = false;
            this.Ind_Reg2FontsList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Ind_Reg2FontsList.Items.AddRange(new object[] {
            "No Media",
            "Show Media",
            "Hide Media"});
            this.Ind_Reg2FontsList.MaxDropDownItems = 12;
            this.Ind_Reg2FontsList.Name = "Ind_Reg2FontsList";
            this.Ind_Reg2FontsList.Size = new System.Drawing.Size(147, 23);
            this.Ind_Reg2FontsList.SelectedIndexChanged += new System.EventHandler(this.Ind_FontsList_SelectedIndexChanged);
            // 
            // Ind_Reg2SizeUpDown
            // 
            this.Ind_Reg2SizeUpDown.Location = new System.Drawing.Point(188, 44);
            this.Ind_Reg2SizeUpDown.Name = "Ind_Reg2SizeUpDown";
            this.Ind_Reg2SizeUpDown.Size = new System.Drawing.Size(45, 20);
            this.Ind_Reg2SizeUpDown.TabIndex = 3;
            this.Ind_Reg2SizeUpDown.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_FontSizeUpDown_MouseUp);
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(162, 46);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(30, 13);
            this.label6.TabIndex = 2;
            this.label6.Text = "Size:";
            // 
            // Ind_Reg2TopUpDown
            // 
            this.Ind_Reg2TopUpDown.Location = new System.Drawing.Point(188, 19);
            this.Ind_Reg2TopUpDown.Name = "Ind_Reg2TopUpDown";
            this.Ind_Reg2TopUpDown.Size = new System.Drawing.Size(45, 20);
            this.Ind_Reg2TopUpDown.TabIndex = 1;
            this.Ind_Reg2TopUpDown.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_MarginUpDown_MouseUp);
            // 
            // panelInd6
            // 
            this.panelInd6.Controls.Add(this.toolStripInd6);
            this.panelInd6.Location = new System.Drawing.Point(7, 18);
            this.panelInd6.Name = "panelInd6";
            this.panelInd6.Size = new System.Drawing.Size(155, 22);
            this.panelInd6.TabIndex = 10;
            // 
            // toolStripInd6
            // 
            this.toolStripInd6.AutoSize = false;
            this.toolStripInd6.CanOverflow = false;
            this.toolStripInd6.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripInd6.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripInd6.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_R2Bold,
            this.Ind_R2Italics,
            this.Ind_R2Underline,
            this.toolStripSeparator15,
            this.Ind_R2Align,
            this.Ind_R2Colour});
            this.toolStripInd6.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripInd6.Location = new System.Drawing.Point(0, -1);
            this.toolStripInd6.Name = "toolStripInd6";
            this.toolStripInd6.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripInd6.Size = new System.Drawing.Size(155, 25);
            this.toolStripInd6.TabIndex = 0;
            // 
            // Ind_R2Bold
            // 
            this.Ind_R2Bold.CheckOnClick = true;
            this.Ind_R2Bold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_R2Bold.Image = global::Properties.Resources.bold1;
            this.Ind_R2Bold.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R2Bold.Name = "Ind_R2Bold";
            this.Ind_R2Bold.Size = new System.Drawing.Size(23, 22);
            this.Ind_R2Bold.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_RegionsFormat_MouseUp);
            // 
            // Ind_R2Italics
            // 
            this.Ind_R2Italics.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_R2Italics.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_R2Italics0,
            this.Ind_R2Italics1,
            this.Ind_R2Italics2});
            this.Ind_R2Italics.Image = global::Properties.Resources.italic;
            this.Ind_R2Italics.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R2Italics.Name = "Ind_R2Italics";
            this.Ind_R2Italics.Size = new System.Drawing.Size(29, 22);
            this.Ind_R2Italics.Tag = "0";
            this.Ind_R2Italics.Text = "toolStripDropDownButton1";
            this.Ind_R2Italics.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Ind_R2Italics_DropDownItemClicked);
            // 
            // Ind_R2Italics0
            // 
            this.Ind_R2Italics0.Image = global::Properties.Resources.deletered;
            this.Ind_R2Italics0.Name = "Ind_R2Italics0";
            this.Ind_R2Italics0.Size = new System.Drawing.Size(173, 22);
            this.Ind_R2Italics0.Tag = "0";
            this.Ind_R2Italics0.Text = "No Italics";
            // 
            // Ind_R2Italics1
            // 
            this.Ind_R2Italics1.Image = global::Properties.Resources.italic;
            this.Ind_R2Italics1.Name = "Ind_R2Italics1";
            this.Ind_R2Italics1.Size = new System.Drawing.Size(173, 22);
            this.Ind_R2Italics1.Tag = "1";
            this.Ind_R2Italics1.Text = "Italics";
            // 
            // Ind_R2Italics2
            // 
            this.Ind_R2Italics2.Image = global::Properties.Resources.italic;
            this.Ind_R2Italics2.Name = "Ind_R2Italics2";
            this.Ind_R2Italics2.Size = new System.Drawing.Size(173, 22);
            this.Ind_R2Italics2.Tag = "2";
            this.Ind_R2Italics2.Text = "Chorus Italics Only";
            // 
            // Ind_R2Underline
            // 
            this.Ind_R2Underline.CheckOnClick = true;
            this.Ind_R2Underline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_R2Underline.Image = global::Properties.Resources.underline1;
            this.Ind_R2Underline.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R2Underline.Name = "Ind_R2Underline";
            this.Ind_R2Underline.Size = new System.Drawing.Size(23, 22);
            this.Ind_R2Underline.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_RegionsFormat_MouseUp);
            // 
            // toolStripSeparator15
            // 
            this.toolStripSeparator15.Name = "toolStripSeparator15";
            this.toolStripSeparator15.Size = new System.Drawing.Size(6, 25);
            // 
            // Ind_R2Align
            // 
            this.Ind_R2Align.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_R2Align.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_R2AlignLeft,
            this.Ind_R2AlignCentre,
            this.Ind_R2AlignRight});
            this.Ind_R2Align.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R2Align.Name = "Ind_R2Align";
            this.Ind_R2Align.Size = new System.Drawing.Size(13, 22);
            this.Ind_R2Align.Tag = "1";
            this.Ind_R2Align.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Ind_R2Align_DropDownItemClicked);
            // 
            // Ind_R2AlignLeft
            // 
            this.Ind_R2AlignLeft.Image = global::Properties.Resources.align_left;
            this.Ind_R2AlignLeft.Name = "Ind_R2AlignLeft";
            this.Ind_R2AlignLeft.Size = new System.Drawing.Size(140, 22);
            this.Ind_R2AlignLeft.Tag = "1";
            this.Ind_R2AlignLeft.Text = "Align Left";
            // 
            // Ind_R2AlignCentre
            // 
            this.Ind_R2AlignCentre.Image = global::Properties.Resources.align_center;
            this.Ind_R2AlignCentre.Name = "Ind_R2AlignCentre";
            this.Ind_R2AlignCentre.Size = new System.Drawing.Size(140, 22);
            this.Ind_R2AlignCentre.Tag = "2";
            this.Ind_R2AlignCentre.Text = "Align Centre";
            // 
            // Ind_R2AlignRight
            // 
            this.Ind_R2AlignRight.Image = global::Properties.Resources.align_right;
            this.Ind_R2AlignRight.Name = "Ind_R2AlignRight";
            this.Ind_R2AlignRight.Size = new System.Drawing.Size(140, 22);
            this.Ind_R2AlignRight.Tag = "3";
            this.Ind_R2AlignRight.Text = "Align Right";
            // 
            // Ind_R2Colour
            // 
            this.Ind_R2Colour.AutoSize = false;
            this.Ind_R2Colour.BackColor = System.Drawing.SystemColors.ActiveBorder;
            this.Ind_R2Colour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Ind_R2Colour.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R2Colour.Name = "Ind_R2Colour";
            this.Ind_R2Colour.Size = new System.Drawing.Size(44, 22);
            this.Ind_R2Colour.Text = "Colour";
            this.Ind_R2Colour.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_RegionsFormat_MouseUp);
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(163, 21);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(29, 13);
            this.label7.TabIndex = 0;
            this.label7.Text = "Top:";
            // 
            // IndgroupBox3
            // 
            this.IndgroupBox3.Controls.Add(this.panelInd5);
            this.IndgroupBox3.Controls.Add(this.Ind_Reg1SizeUpDown);
            this.IndgroupBox3.Controls.Add(this.labelBlackScreenOn);
            this.IndgroupBox3.Controls.Add(this.Ind_Reg1TopUpDown);
            this.IndgroupBox3.Controls.Add(this.panelInd4);
            this.IndgroupBox3.Controls.Add(this.label4);
            this.IndgroupBox3.Location = new System.Drawing.Point(6, 192);
            this.IndgroupBox3.Name = "IndgroupBox3";
            this.IndgroupBox3.Size = new System.Drawing.Size(309, 72);
            this.IndgroupBox3.TabIndex = 2;
            this.IndgroupBox3.TabStop = false;
            this.IndgroupBox3.Text = "Region 1";
            // 
            // panelInd5
            // 
            this.panelInd5.Controls.Add(this.toolStripInd5);
            this.panelInd5.Location = new System.Drawing.Point(7, 43);
            this.panelInd5.Name = "panelInd5";
            this.panelInd5.Size = new System.Drawing.Size(151, 22);
            this.panelInd5.TabIndex = 12;
            // 
            // toolStripInd5
            // 
            this.toolStripInd5.AutoSize = false;
            this.toolStripInd5.CanOverflow = false;
            this.toolStripInd5.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripInd5.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripInd5.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_Reg1FontsList});
            this.toolStripInd5.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripInd5.Location = new System.Drawing.Point(0, -1);
            this.toolStripInd5.Name = "toolStripInd5";
            this.toolStripInd5.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripInd5.Size = new System.Drawing.Size(155, 25);
            this.toolStripInd5.TabIndex = 5;
            // 
            // Ind_Reg1FontsList
            // 
            this.Ind_Reg1FontsList.AutoSize = false;
            this.Ind_Reg1FontsList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Ind_Reg1FontsList.Items.AddRange(new object[] {
            "No Media",
            "Show Media",
            "Hide Media"});
            this.Ind_Reg1FontsList.MaxDropDownItems = 12;
            this.Ind_Reg1FontsList.Name = "Ind_Reg1FontsList";
            this.Ind_Reg1FontsList.Size = new System.Drawing.Size(147, 23);
            this.Ind_Reg1FontsList.SelectedIndexChanged += new System.EventHandler(this.Ind_FontsList_SelectedIndexChanged);
            // 
            // Ind_Reg1SizeUpDown
            // 
            this.Ind_Reg1SizeUpDown.Location = new System.Drawing.Point(188, 44);
            this.Ind_Reg1SizeUpDown.Name = "Ind_Reg1SizeUpDown";
            this.Ind_Reg1SizeUpDown.Size = new System.Drawing.Size(45, 20);
            this.Ind_Reg1SizeUpDown.TabIndex = 3;
            this.Ind_Reg1SizeUpDown.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_FontSizeUpDown_MouseUp);
            // 
            // labelBlackScreenOn
            // 
            this.labelBlackScreenOn.AutoSize = true;
            this.labelBlackScreenOn.BackColor = System.Drawing.Color.Transparent;
            this.labelBlackScreenOn.Location = new System.Drawing.Point(162, 46);
            this.labelBlackScreenOn.Name = "labelBlackScreenOn";
            this.labelBlackScreenOn.Size = new System.Drawing.Size(30, 13);
            this.labelBlackScreenOn.TabIndex = 2;
            this.labelBlackScreenOn.Text = "Size:";
            // 
            // Ind_Reg1TopUpDown
            // 
            this.Ind_Reg1TopUpDown.Location = new System.Drawing.Point(188, 19);
            this.Ind_Reg1TopUpDown.Name = "Ind_Reg1TopUpDown";
            this.Ind_Reg1TopUpDown.Size = new System.Drawing.Size(45, 20);
            this.Ind_Reg1TopUpDown.TabIndex = 1;
            this.Ind_Reg1TopUpDown.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_MarginUpDown_MouseUp);
            // 
            // panelInd4
            // 
            this.panelInd4.Controls.Add(this.toolStripInd4);
            this.panelInd4.Location = new System.Drawing.Point(7, 18);
            this.panelInd4.Name = "panelInd4";
            this.panelInd4.Size = new System.Drawing.Size(155, 22);
            this.panelInd4.TabIndex = 10;
            // 
            // toolStripInd4
            // 
            this.toolStripInd4.AutoSize = false;
            this.toolStripInd4.CanOverflow = false;
            this.toolStripInd4.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripInd4.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripInd4.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_R1Bold,
            this.Ind_R1Italics,
            this.Ind_R1Underline,
            this.toolStripSeparator13,
            this.Ind_R1Align,
            this.Ind_R1Colour});
            this.toolStripInd4.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripInd4.Location = new System.Drawing.Point(0, -1);
            this.toolStripInd4.Name = "toolStripInd4";
            this.toolStripInd4.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripInd4.Size = new System.Drawing.Size(155, 25);
            this.toolStripInd4.TabIndex = 0;
            // 
            // Ind_R1Bold
            // 
            this.Ind_R1Bold.CheckOnClick = true;
            this.Ind_R1Bold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_R1Bold.Image = global::Properties.Resources.bold1;
            this.Ind_R1Bold.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R1Bold.Name = "Ind_R1Bold";
            this.Ind_R1Bold.Size = new System.Drawing.Size(23, 22);
            this.Ind_R1Bold.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_RegionsFormat_MouseUp);
            // 
            // Ind_R1Italics
            // 
            this.Ind_R1Italics.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_R1Italics.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_R1Italics0,
            this.Ind_R1Italics1,
            this.Ind_R1Italics2});
            this.Ind_R1Italics.Image = global::Properties.Resources.italic;
            this.Ind_R1Italics.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R1Italics.Name = "Ind_R1Italics";
            this.Ind_R1Italics.Size = new System.Drawing.Size(29, 22);
            this.Ind_R1Italics.Tag = "0";
            this.Ind_R1Italics.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Ind_R1Italics_DropDownItemClicked);
            // 
            // Ind_R1Italics0
            // 
            this.Ind_R1Italics0.Image = global::Properties.Resources.deletered;
            this.Ind_R1Italics0.Name = "Ind_R1Italics0";
            this.Ind_R1Italics0.Size = new System.Drawing.Size(173, 22);
            this.Ind_R1Italics0.Tag = "0";
            this.Ind_R1Italics0.Text = "No Italics";
            // 
            // Ind_R1Italics1
            // 
            this.Ind_R1Italics1.Image = global::Properties.Resources.italic;
            this.Ind_R1Italics1.Name = "Ind_R1Italics1";
            this.Ind_R1Italics1.Size = new System.Drawing.Size(173, 22);
            this.Ind_R1Italics1.Tag = "1";
            this.Ind_R1Italics1.Text = "Italics";
            // 
            // Ind_R1Italics2
            // 
            this.Ind_R1Italics2.Image = global::Properties.Resources.italic;
            this.Ind_R1Italics2.Name = "Ind_R1Italics2";
            this.Ind_R1Italics2.Size = new System.Drawing.Size(173, 22);
            this.Ind_R1Italics2.Tag = "2";
            this.Ind_R1Italics2.Text = "Chorus Italics Only";
            // 
            // Ind_R1Underline
            // 
            this.Ind_R1Underline.CheckOnClick = true;
            this.Ind_R1Underline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_R1Underline.Image = global::Properties.Resources.underline1;
            this.Ind_R1Underline.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R1Underline.Name = "Ind_R1Underline";
            this.Ind_R1Underline.Size = new System.Drawing.Size(23, 22);
            this.Ind_R1Underline.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_RegionsFormat_MouseUp);
            // 
            // toolStripSeparator13
            // 
            this.toolStripSeparator13.Name = "toolStripSeparator13";
            this.toolStripSeparator13.Size = new System.Drawing.Size(6, 25);
            // 
            // Ind_R1Align
            // 
            this.Ind_R1Align.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_R1Align.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_R1AlignLeft,
            this.Ind_R1AlignCentre,
            this.Ind_R1AlignRight});
            this.Ind_R1Align.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R1Align.Name = "Ind_R1Align";
            this.Ind_R1Align.Size = new System.Drawing.Size(13, 22);
            this.Ind_R1Align.Tag = "2";
            this.Ind_R1Align.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Ind_R1Align_DropDownItemClicked);
            // 
            // Ind_R1AlignLeft
            // 
            this.Ind_R1AlignLeft.Image = global::Properties.Resources.align_left;
            this.Ind_R1AlignLeft.Name = "Ind_R1AlignLeft";
            this.Ind_R1AlignLeft.Size = new System.Drawing.Size(140, 22);
            this.Ind_R1AlignLeft.Tag = "1";
            this.Ind_R1AlignLeft.Text = "Align Left";
            // 
            // Ind_R1AlignCentre
            // 
            this.Ind_R1AlignCentre.Image = global::Properties.Resources.align_center;
            this.Ind_R1AlignCentre.Name = "Ind_R1AlignCentre";
            this.Ind_R1AlignCentre.Size = new System.Drawing.Size(140, 22);
            this.Ind_R1AlignCentre.Tag = "2";
            this.Ind_R1AlignCentre.Text = "Align Centre";
            // 
            // Ind_R1AlignRight
            // 
            this.Ind_R1AlignRight.Image = global::Properties.Resources.align_right;
            this.Ind_R1AlignRight.Name = "Ind_R1AlignRight";
            this.Ind_R1AlignRight.Size = new System.Drawing.Size(140, 22);
            this.Ind_R1AlignRight.Tag = "3";
            this.Ind_R1AlignRight.Text = "Align Right";
            // 
            // Ind_R1Colour
            // 
            this.Ind_R1Colour.AutoSize = false;
            this.Ind_R1Colour.BackColor = System.Drawing.SystemColors.ActiveBorder;
            this.Ind_R1Colour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Ind_R1Colour.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_R1Colour.Name = "Ind_R1Colour";
            this.Ind_R1Colour.Size = new System.Drawing.Size(44, 22);
            this.Ind_R1Colour.Text = "Colour";
            this.Ind_R1Colour.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_RegionsFormat_MouseUp);
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(163, 21);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(29, 13);
            this.label4.TabIndex = 0;
            this.label4.Text = "Top:";
            // 
            // IndgroupBox2
            // 
            this.IndgroupBox2.Controls.Add(this.Ind_BottomUpDown);
            this.IndgroupBox2.Controls.Add(this.panelInd3);
            this.IndgroupBox2.Controls.Add(this.Ind_RightUpDown);
            this.IndgroupBox2.Controls.Add(this.panelInd2);
            this.IndgroupBox2.Controls.Add(this.label3);
            this.IndgroupBox2.Controls.Add(this.Ind_LeftUpDown);
            this.IndgroupBox2.Controls.Add(this.label2);
            this.IndgroupBox2.Controls.Add(this.label1);
            this.IndgroupBox2.Location = new System.Drawing.Point(6, 93);
            this.IndgroupBox2.Name = "IndgroupBox2";
            this.IndgroupBox2.Size = new System.Drawing.Size(309, 98);
            this.IndgroupBox2.TabIndex = 1;
            this.IndgroupBox2.TabStop = false;
            this.IndgroupBox2.Text = "Background";
            // 
            // Ind_BottomUpDown
            // 
            this.Ind_BottomUpDown.Location = new System.Drawing.Point(187, 71);
            this.Ind_BottomUpDown.Name = "Ind_BottomUpDown";
            this.Ind_BottomUpDown.Size = new System.Drawing.Size(45, 20);
            this.Ind_BottomUpDown.TabIndex = 2;
            this.Ind_BottomUpDown.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_MarginUpDown_MouseUp);
            // 
            // panelInd3
            // 
            this.panelInd3.Controls.Add(this.toolStripInd3);
            this.panelInd3.Location = new System.Drawing.Point(6, 43);
            this.panelInd3.Name = "panelInd3";
            this.panelInd3.Size = new System.Drawing.Size(228, 22);
            this.panelInd3.TabIndex = 11;
            // 
            // toolStripInd3
            // 
            this.toolStripInd3.AutoSize = false;
            this.toolStripInd3.CanOverflow = false;
            this.toolStripInd3.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripInd3.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripInd3.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_TransItem,
            this.Ind_TransSlides});
            this.toolStripInd3.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripInd3.Location = new System.Drawing.Point(0, -1);
            this.toolStripInd3.Name = "toolStripInd3";
            this.toolStripInd3.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripInd3.Size = new System.Drawing.Size(231, 25);
            this.toolStripInd3.TabIndex = 0;
            // 
            // Ind_TransItem
            // 
            this.Ind_TransItem.AutoSize = false;
            this.Ind_TransItem.AutoToolTip = true;
            this.Ind_TransItem.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Ind_TransItem.MaxDropDownItems = 24;
            this.Ind_TransItem.Name = "Ind_TransItem";
            this.Ind_TransItem.Size = new System.Drawing.Size(111, 23);
            this.Ind_TransItem.ToolTipText = "Item Transition";
            this.Ind_TransItem.SelectedIndexChanged += new System.EventHandler(this.Ind_TransSelectedIndexChanged);
            // 
            // Ind_TransSlides
            // 
            this.Ind_TransSlides.AutoSize = false;
            this.Ind_TransSlides.AutoToolTip = true;
            this.Ind_TransSlides.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Ind_TransSlides.MaxDropDownItems = 24;
            this.Ind_TransSlides.Name = "Ind_TransSlides";
            this.Ind_TransSlides.Size = new System.Drawing.Size(111, 23);
            this.Ind_TransSlides.ToolTipText = "Slide Transition";
            this.Ind_TransSlides.SelectedIndexChanged += new System.EventHandler(this.Ind_TransSelectedIndexChanged);
            // 
            // Ind_RightUpDown
            // 
            this.Ind_RightUpDown.Location = new System.Drawing.Point(104, 71);
            this.Ind_RightUpDown.Name = "Ind_RightUpDown";
            this.Ind_RightUpDown.Size = new System.Drawing.Size(41, 20);
            this.Ind_RightUpDown.TabIndex = 1;
            this.Ind_RightUpDown.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_MarginUpDown_MouseUp);
            // 
            // panelInd2
            // 
            this.panelInd2.Controls.Add(this.toolStripInd2);
            this.panelInd2.Location = new System.Drawing.Point(6, 18);
            this.panelInd2.Name = "panelInd2";
            this.panelInd2.Size = new System.Drawing.Size(228, 22);
            this.panelInd2.TabIndex = 10;
            // 
            // toolStripInd2
            // 
            this.toolStripInd2.AutoSize = false;
            this.toolStripInd2.CanOverflow = false;
            this.toolStripInd2.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripInd2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripInd2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_ImageMode,
            this.Ind_NoImage,
            this.Ind_BackColour,
            this.toolStripSeparator27,
            this.Ind_AssignMedia});
            this.toolStripInd2.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripInd2.Location = new System.Drawing.Point(0, -1);
            this.toolStripInd2.Name = "toolStripInd2";
            this.toolStripInd2.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripInd2.Size = new System.Drawing.Size(231, 25);
            this.toolStripInd2.TabIndex = 0;
            // 
            // Ind_ImageMode
            // 
            this.Ind_ImageMode.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_ImageMode.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_ImageTile,
            this.Ind_ImageCentre,
            this.Ind_ImageBestFit});
            this.Ind_ImageMode.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_ImageMode.Name = "Ind_ImageMode";
            this.Ind_ImageMode.Size = new System.Drawing.Size(13, 22);
            this.Ind_ImageMode.Tag = "2";
            this.Ind_ImageMode.ToolTipText = "Background Picture Format";
            this.Ind_ImageMode.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Ind_ImageMode_DropDownItemClicked);
            // 
            // Ind_ImageTile
            // 
            this.Ind_ImageTile.Image = global::Properties.Resources.titleImage;
            this.Ind_ImageTile.Name = "Ind_ImageTile";
            this.Ind_ImageTile.Size = new System.Drawing.Size(148, 22);
            this.Ind_ImageTile.Tag = "0";
            this.Ind_ImageTile.Text = "Tile Image";
            // 
            // Ind_ImageCentre
            // 
            this.Ind_ImageCentre.Image = global::Properties.Resources.centerImage;
            this.Ind_ImageCentre.Name = "Ind_ImageCentre";
            this.Ind_ImageCentre.Size = new System.Drawing.Size(148, 22);
            this.Ind_ImageCentre.Tag = "1";
            this.Ind_ImageCentre.Text = "Centre Image";
            // 
            // Ind_ImageBestFit
            // 
            this.Ind_ImageBestFit.Image = global::Properties.Resources.background;
            this.Ind_ImageBestFit.Name = "Ind_ImageBestFit";
            this.Ind_ImageBestFit.Size = new System.Drawing.Size(148, 22);
            this.Ind_ImageBestFit.Tag = "2";
            this.Ind_ImageBestFit.Text = "Best Fit Image";
            // 
            // Ind_NoImage
            // 
            this.Ind_NoImage.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_NoImage.Image = global::Properties.Resources.not_available;
            this.Ind_NoImage.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_NoImage.Name = "Ind_NoImage";
            this.Ind_NoImage.Size = new System.Drawing.Size(23, 22);
            this.Ind_NoImage.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // Ind_BackColour
            // 
            this.Ind_BackColour.AutoSize = false;
            this.Ind_BackColour.BackColor = System.Drawing.SystemColors.ActiveBorder;
            this.Ind_BackColour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Ind_BackColour.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_BackColour.Name = "Ind_BackColour";
            this.Ind_BackColour.Size = new System.Drawing.Size(59, 22);
            this.Ind_BackColour.Text = "Colours";
            this.Ind_BackColour.ToolTipText = "Background Colours and Patterns";
            this.Ind_BackColour.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // toolStripSeparator27
            // 
            this.toolStripSeparator27.Name = "toolStripSeparator27";
            this.toolStripSeparator27.Size = new System.Drawing.Size(6, 25);
            // 
            // Ind_AssignMedia
            // 
            this.Ind_AssignMedia.AutoSize = false;
            this.Ind_AssignMedia.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Ind_AssignMedia.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_AssignMedia.Name = "Ind_AssignMedia";
            this.Ind_AssignMedia.Size = new System.Drawing.Size(110, 22);
            this.Ind_AssignMedia.Text = "Media";
            this.Ind_AssignMedia.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(148, 73);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(43, 13);
            this.label3.TabIndex = 15;
            this.label3.Text = "Bottom:";
            // 
            // Ind_LeftUpDown
            // 
            this.Ind_LeftUpDown.Location = new System.Drawing.Point(28, 71);
            this.Ind_LeftUpDown.Name = "Ind_LeftUpDown";
            this.Ind_LeftUpDown.Size = new System.Drawing.Size(41, 20);
            this.Ind_LeftUpDown.TabIndex = 10;
            this.Ind_LeftUpDown.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_MarginUpDown_MouseUp);
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(73, 73);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(35, 13);
            this.label2.TabIndex = 14;
            this.label2.Text = "Right:";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(4, 73);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(28, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Left:";
            // 
            // IndgroupBox1
            // 
            this.IndgroupBox1.Controls.Add(this.flowLayoutPreviewPowerPoint);
            this.IndgroupBox1.Controls.Add(this.panel4);
            this.IndgroupBox1.Controls.Add(this.panelInd1);
            this.IndgroupBox1.Location = new System.Drawing.Point(6, 20);
            this.IndgroupBox1.Name = "IndgroupBox1";
            this.IndgroupBox1.Size = new System.Drawing.Size(309, 73);
            this.IndgroupBox1.TabIndex = 0;
            this.IndgroupBox1.TabStop = false;
            this.IndgroupBox1.Text = "Layout";
            // 
            // flowLayoutPreviewPowerPoint
            // 
            this.flowLayoutPreviewPowerPoint.AutoScroll = true;
            this.flowLayoutPreviewPowerPoint.Location = new System.Drawing.Point(195, 34);
            this.flowLayoutPreviewPowerPoint.Name = "flowLayoutPreviewPowerPoint";
            this.flowLayoutPreviewPowerPoint.Size = new System.Drawing.Size(59, 35);
            this.flowLayoutPreviewPowerPoint.TabIndex = 5;
            // 
            // panel4
            // 
            this.panel4.Controls.Add(this.toolStrip1);
            this.panel4.Location = new System.Drawing.Point(6, 44);
            this.panel4.Name = "panel4";
            this.panel4.Size = new System.Drawing.Size(105, 22);
            this.panel4.TabIndex = 10;
            // 
            // toolStrip1
            // 
            this.toolStrip1.AutoSize = false;
            this.toolStrip1.CanOverflow = false;
            this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_HeadAlign,
            this.Ind_CapoDown,
            this.Ind_CapoUp,
            this.toolStripSeparator5,
            this.Ind_HideDisplayPanel});
            this.toolStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStrip1.Location = new System.Drawing.Point(0, -1);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStrip1.Size = new System.Drawing.Size(109, 25);
            this.toolStrip1.TabIndex = 0;
            // 
            // Ind_HeadAlign
            // 
            this.Ind_HeadAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_HeadAlign.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_HeadAlignAsR1,
            this.Ind_HeadAlignAsR2,
            this.Ind_HeadAlignLeft,
            this.Ind_HeadAlignCentre,
            this.Ind_HeadAlignRight});
            this.Ind_HeadAlign.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_HeadAlign.Name = "Ind_HeadAlign";
            this.Ind_HeadAlign.Size = new System.Drawing.Size(13, 22);
            this.Ind_HeadAlign.Tag = "0";
            this.Ind_HeadAlign.ToolTipText = "Display Title/Verse Headings";
            this.Ind_HeadAlign.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Ind_HeadAlign_DropDownItemClicked);
            // 
            // Ind_HeadAlignAsR1
            // 
            this.Ind_HeadAlignAsR1.Image = global::Properties.Resources.heading1;
            this.Ind_HeadAlignAsR1.Name = "Ind_HeadAlignAsR1";
            this.Ind_HeadAlignAsR1.Size = new System.Drawing.Size(220, 22);
            this.Ind_HeadAlignAsR1.Tag = "0";
            this.Ind_HeadAlignAsR1.Text = "Headings Align As Region 1";
            // 
            // Ind_HeadAlignAsR2
            // 
            this.Ind_HeadAlignAsR2.Image = global::Properties.Resources.heading2;
            this.Ind_HeadAlignAsR2.Name = "Ind_HeadAlignAsR2";
            this.Ind_HeadAlignAsR2.Size = new System.Drawing.Size(220, 22);
            this.Ind_HeadAlignAsR2.Tag = "1";
            this.Ind_HeadAlignAsR2.Text = "Headings Align As region 2";
            // 
            // Ind_HeadAlignLeft
            // 
            this.Ind_HeadAlignLeft.Image = global::Properties.Resources.align_left;
            this.Ind_HeadAlignLeft.Name = "Ind_HeadAlignLeft";
            this.Ind_HeadAlignLeft.Size = new System.Drawing.Size(220, 22);
            this.Ind_HeadAlignLeft.Tag = "2";
            this.Ind_HeadAlignLeft.Text = "Headings Align Left";
            // 
            // Ind_HeadAlignCentre
            // 
            this.Ind_HeadAlignCentre.Image = global::Properties.Resources.align_center;
            this.Ind_HeadAlignCentre.Name = "Ind_HeadAlignCentre";
            this.Ind_HeadAlignCentre.Size = new System.Drawing.Size(220, 22);
            this.Ind_HeadAlignCentre.Tag = "3";
            this.Ind_HeadAlignCentre.Text = "Headings Align Centre";
            // 
            // Ind_HeadAlignRight
            // 
            this.Ind_HeadAlignRight.Image = global::Properties.Resources.align_right;
            this.Ind_HeadAlignRight.Name = "Ind_HeadAlignRight";
            this.Ind_HeadAlignRight.Size = new System.Drawing.Size(220, 22);
            this.Ind_HeadAlignRight.Tag = "4";
            this.Ind_HeadAlignRight.Text = "Headings Align Right";
            // 
            // Ind_CapoDown
            // 
            this.Ind_CapoDown.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_CapoDown.Image = global::Properties.Resources.Left1;
            this.Ind_CapoDown.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_CapoDown.Name = "Ind_CapoDown";
            this.Ind_CapoDown.Size = new System.Drawing.Size(23, 22);
            this.Ind_CapoDown.ToolTipText = "Transpose Down 1 Semi-Tone";
            this.Ind_CapoDown.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // Ind_CapoUp
            // 
            this.Ind_CapoUp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_CapoUp.Image = global::Properties.Resources.Right123;
            this.Ind_CapoUp.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_CapoUp.Name = "Ind_CapoUp";
            this.Ind_CapoUp.Size = new System.Drawing.Size(23, 22);
            this.Ind_CapoUp.ToolTipText = "Transpose Up 1 Semi-Tone";
            this.Ind_CapoUp.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // toolStripSeparator5
            // 
            this.toolStripSeparator5.Name = "toolStripSeparator5";
            this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25);
            // 
            // Ind_HideDisplayPanel
            // 
            this.Ind_HideDisplayPanel.CheckOnClick = true;
            this.Ind_HideDisplayPanel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_HideDisplayPanel.Image = global::Properties.Resources.not_available;
            this.Ind_HideDisplayPanel.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_HideDisplayPanel.Name = "Ind_HideDisplayPanel";
            this.Ind_HideDisplayPanel.Size = new System.Drawing.Size(23, 22);
            this.Ind_HideDisplayPanel.ToolTipText = "Do not show Display Panel Data";
            this.Ind_HideDisplayPanel.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // panelInd1
            // 
            this.panelInd1.Controls.Add(this.toolStripInd1);
            this.panelInd1.Location = new System.Drawing.Point(6, 18);
            this.panelInd1.Name = "panelInd1";
            this.panelInd1.Size = new System.Drawing.Size(183, 22);
            this.panelInd1.TabIndex = 9;
            // 
            // toolStripInd1
            // 
            this.toolStripInd1.AutoSize = false;
            this.toolStripInd1.CanOverflow = false;
            this.toolStripInd1.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripInd1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripInd1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_Head,
            this.Ind_Region,
            this.Ind_VAlign,
            this.Ind_Shadow,
            this.Ind_Outline,
            this.Ind_Interlace,
            this.Ind_Notations});
            this.toolStripInd1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStripInd1.Location = new System.Drawing.Point(0, -1);
            this.toolStripInd1.Name = "toolStripInd1";
            this.toolStripInd1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolStripInd1.Size = new System.Drawing.Size(186, 25);
            this.toolStripInd1.TabIndex = 0;
            // 
            // Ind_Head
            // 
            this.Ind_Head.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_Head.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_HeadNoTitles,
            this.Ind_HeadAllTitles,
            this.Ind_HeadFirstScreen});
            this.Ind_Head.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_Head.Name = "Ind_Head";
            this.Ind_Head.Size = new System.Drawing.Size(13, 22);
            this.Ind_Head.Tag = "1";
            this.Ind_Head.ToolTipText = "Display Title/Verse Headings";
            this.Ind_Head.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Ind_Head_DropDownItemClicked);
            // 
            // Ind_HeadNoTitles
            // 
            this.Ind_HeadNoTitles.Image = global::Properties.Resources.stop;
            this.Ind_HeadNoTitles.Name = "Ind_HeadNoTitles";
            this.Ind_HeadNoTitles.Size = new System.Drawing.Size(225, 22);
            this.Ind_HeadNoTitles.Tag = "0";
            this.Ind_HeadNoTitles.Text = "No Headings";
            // 
            // Ind_HeadAllTitles
            // 
            this.Ind_HeadAllTitles.Image = global::Properties.Resources.allHeading;
            this.Ind_HeadAllTitles.Name = "Ind_HeadAllTitles";
            this.Ind_HeadAllTitles.Size = new System.Drawing.Size(225, 22);
            this.Ind_HeadAllTitles.Tag = "1";
            this.Ind_HeadAllTitles.Text = "Show All Headings";
            // 
            // Ind_HeadFirstScreen
            // 
            this.Ind_HeadFirstScreen.Image = global::Properties.Resources.heading1;
            this.Ind_HeadFirstScreen.Name = "Ind_HeadFirstScreen";
            this.Ind_HeadFirstScreen.Size = new System.Drawing.Size(225, 22);
            this.Ind_HeadFirstScreen.Tag = "2";
            this.Ind_HeadFirstScreen.Text = "Heading At First Screen Only";
            // 
            // Ind_Region
            // 
            this.Ind_Region.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_Region.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_ShowRegion1,
            this.Ind_ShowRegion2,
            this.Ind_ShowRegionBoth});
            this.Ind_Region.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_Region.Name = "Ind_Region";
            this.Ind_Region.Size = new System.Drawing.Size(13, 22);
            this.Ind_Region.Tag = "2";
            this.Ind_Region.ToolTipText = "Show Region Text";
            this.Ind_Region.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Ind_Region_DropDownItemClicked);
            // 
            // Ind_ShowRegion1
            // 
            this.Ind_ShowRegion1.Image = global::Properties.Resources.number_1;
            this.Ind_ShowRegion1.Name = "Ind_ShowRegion1";
            this.Ind_ShowRegion1.Size = new System.Drawing.Size(148, 22);
            this.Ind_ShowRegion1.Tag = "0";
            this.Ind_ShowRegion1.Text = "Region 1 Only";
            // 
            // Ind_ShowRegion2
            // 
            this.Ind_ShowRegion2.Image = global::Properties.Resources.number_2;
            this.Ind_ShowRegion2.Name = "Ind_ShowRegion2";
            this.Ind_ShowRegion2.Size = new System.Drawing.Size(148, 22);
            this.Ind_ShowRegion2.Tag = "1";
            this.Ind_ShowRegion2.Text = "Region 2 Only";
            // 
            // Ind_ShowRegionBoth
            // 
            this.Ind_ShowRegionBoth.Image = global::Properties.Resources.cube;
            this.Ind_ShowRegionBoth.Name = "Ind_ShowRegionBoth";
            this.Ind_ShowRegionBoth.Size = new System.Drawing.Size(148, 22);
            this.Ind_ShowRegionBoth.Tag = "2";
            this.Ind_ShowRegionBoth.Text = "Regions 1 && 2";
            // 
            // Ind_VAlign
            // 
            this.Ind_VAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_VAlign.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Ind_VAlignTop,
            this.Ind_VAlignCentre,
            this.Ind_VAlignBottom});
            this.Ind_VAlign.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_VAlign.Name = "Ind_VAlign";
            this.Ind_VAlign.Size = new System.Drawing.Size(13, 22);
            this.Ind_VAlign.Tag = "1";
            this.Ind_VAlign.ToolTipText = "Vertical Alignment";
            this.Ind_VAlign.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Ind_VAlign_DropDownItemClicked);
            // 
            // Ind_VAlignTop
            // 
            this.Ind_VAlignTop.Image = global::Properties.Resources.align_top;
            this.Ind_VAlignTop.Name = "Ind_VAlignTop";
            this.Ind_VAlignTop.Size = new System.Drawing.Size(145, 22);
            this.Ind_VAlignTop.Tag = "0";
            this.Ind_VAlignTop.Text = "Align Top";
            // 
            // Ind_VAlignCentre
            // 
            this.Ind_VAlignCentre.Image = global::Properties.Resources.align_center;
            this.Ind_VAlignCentre.Name = "Ind_VAlignCentre";
            this.Ind_VAlignCentre.Size = new System.Drawing.Size(145, 22);
            this.Ind_VAlignCentre.Tag = "1";
            this.Ind_VAlignCentre.Text = "Align Centre";
            // 
            // Ind_VAlignBottom
            // 
            this.Ind_VAlignBottom.Image = global::Properties.Resources.align_bottom;
            this.Ind_VAlignBottom.Name = "Ind_VAlignBottom";
            this.Ind_VAlignBottom.Size = new System.Drawing.Size(145, 22);
            this.Ind_VAlignBottom.Tag = "2";
            this.Ind_VAlignBottom.Text = "Align Bottom";
            // 
            // Ind_Shadow
            // 
            this.Ind_Shadow.CheckOnClick = true;
            this.Ind_Shadow.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_Shadow.Image = global::Properties.Resources.shadow;
            this.Ind_Shadow.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_Shadow.Name = "Ind_Shadow";
            this.Ind_Shadow.Size = new System.Drawing.Size(23, 22);
            this.Ind_Shadow.Tag = "open";
            this.Ind_Shadow.ToolTipText = "Shadow Font";
            this.Ind_Shadow.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // Ind_Outline
            // 
            this.Ind_Outline.CheckOnClick = true;
            this.Ind_Outline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_Outline.Image = global::Properties.Resources.border_all;
            this.Ind_Outline.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_Outline.Name = "Ind_Outline";
            this.Ind_Outline.Size = new System.Drawing.Size(23, 22);
            this.Ind_Outline.Tag = "add";
            this.Ind_Outline.ToolTipText = "Outline Font";
            this.Ind_Outline.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // Ind_Interlace
            // 
            this.Ind_Interlace.CheckOnClick = true;
            this.Ind_Interlace.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_Interlace.Image = global::Properties.Resources.cube;
            this.Ind_Interlace.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_Interlace.Name = "Ind_Interlace";
            this.Ind_Interlace.Size = new System.Drawing.Size(23, 22);
            this.Ind_Interlace.ToolTipText = "Interlace Region1/Region2";
            this.Ind_Interlace.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // Ind_Notations
            // 
            this.Ind_Notations.CheckOnClick = true;
            this.Ind_Notations.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Ind_Notations.Image = global::Properties.Resources.fullscreen;
            this.Ind_Notations.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Ind_Notations.Name = "Ind_Notations";
            this.Ind_Notations.Size = new System.Drawing.Size(23, 22);
            this.Ind_Notations.ToolTipText = "Show Notations";
            this.Ind_Notations.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Ind_Items_MouseUp);
            // 
            // Ind_checkBox
            // 
            this.Ind_checkBox.AutoSize = true;
            this.Ind_checkBox.BackColor = System.Drawing.Color.Transparent;
            this.Ind_checkBox.Location = new System.Drawing.Point(6, 3);
            this.Ind_checkBox.Name = "Ind_checkBox";
            this.Ind_checkBox.Size = new System.Drawing.Size(134, 17);
            this.Ind_checkBox.TabIndex = 0;
            this.Ind_checkBox.Text = "Use Individual Settings";
            this.Ind_checkBox.UseVisualStyleBackColor = false;
            this.Ind_checkBox.Click += new System.EventHandler(this.Ind_checkBox_Click);
            // 
            // PreviewInfo
            // 
            this.PreviewInfo.BackColor = System.Drawing.SystemColors.Window;
            this.PreviewInfo.Location = new System.Drawing.Point(3, 53);
            this.PreviewInfo.Name = "PreviewInfo";
            this.PreviewInfo.ReadOnly = true;
            this.PreviewInfo.Size = new System.Drawing.Size(30, 42);
            this.PreviewInfo.TabIndex = 4;
            this.PreviewInfo.Text = "";
            this.PreviewInfo.Enter += new System.EventHandler(this.FormControl_Enter);
            this.PreviewInfo.Leave += new System.EventHandler(this.FormControl_Leave);
            // 
            // flowLayoutPreviewLyrics
            // 
            this.flowLayoutPreviewLyrics.AutoScroll = true;
            this.flowLayoutPreviewLyrics.BackColor = System.Drawing.SystemColors.Window;
            this.flowLayoutPreviewLyrics.Location = new System.Drawing.Point(3, 20);
            this.flowLayoutPreviewLyrics.Name = "flowLayoutPreviewLyrics";
            this.flowLayoutPreviewLyrics.Size = new System.Drawing.Size(63, 44);
            this.flowLayoutPreviewLyrics.TabIndex = 6;
            this.flowLayoutPreviewLyrics.Click += new System.EventHandler(this.flowLayoutPreviewLyrics_Click);
            this.flowLayoutPreviewLyrics.Leave += new System.EventHandler(this.flowLayoutPreviewLyrics_Leave);
            // 
            // panel9
            // 
            this.panel9.Controls.Add(this.btnToLive);
            this.panel9.Controls.Add(this.btnToOutputMoveNext);
            this.panel9.Controls.Add(this.PreviewPanelDisplayName);
            this.panel9.Controls.Add(this.btnToOutput);
            this.panel9.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel9.Location = new System.Drawing.Point(0, 0);
            this.panel9.Name = "panel9";
            this.panel9.Size = new System.Drawing.Size(354, 22);
            this.panel9.TabIndex = 0;
            // 
            // btnToLive
            // 
            this.btnToLive.Dock = System.Windows.Forms.DockStyle.Right;
            this.btnToLive.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnToLive.ImageIndex = 8;
            this.btnToLive.ImageList = this.imageList1;
            this.btnToLive.Location = new System.Drawing.Point(248, 0);
            this.btnToLive.Name = "btnToLive";
            this.btnToLive.Size = new System.Drawing.Size(42, 22);
            this.btnToLive.TabIndex = 8;
            this.toolTip1.SetToolTip(this.btnToLive, "Copy to Output and Start Show");
            this.btnToLive.Click += new System.EventHandler(this.btnToLive_Click);
            // 
            // btnToOutputMoveNext
            // 
            this.btnToOutputMoveNext.Dock = System.Windows.Forms.DockStyle.Right;
            this.btnToOutputMoveNext.Image = ((System.Drawing.Image)(resources.GetObject("btnToOutputMoveNext.Image")));
            this.btnToOutputMoveNext.Location = new System.Drawing.Point(290, 0);
            this.btnToOutputMoveNext.Name = "btnToOutputMoveNext";
            this.btnToOutputMoveNext.Size = new System.Drawing.Size(32, 22);
            this.btnToOutputMoveNext.TabIndex = 9;
            this.toolTip1.SetToolTip(this.btnToOutputMoveNext, "Copy to Output and Preview Next Worship List Item");
            this.btnToOutputMoveNext.Click += new System.EventHandler(this.btnToOutputMoveNext_Click);
            // 
            // PreviewPanelDisplayName
            // 
            this.PreviewPanelDisplayName.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader15});
            this.PreviewPanelDisplayName.Dock = System.Windows.Forms.DockStyle.Fill;
            this.PreviewPanelDisplayName.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.PreviewPanelDisplayName.LabelWrap = false;
            this.PreviewPanelDisplayName.Location = new System.Drawing.Point(0, 0);
            this.PreviewPanelDisplayName.MultiSelect = false;
            this.PreviewPanelDisplayName.Name = "PreviewPanelDisplayName";
            this.PreviewPanelDisplayName.Scrollable = false;
            this.PreviewPanelDisplayName.ShowItemToolTips = true;
            this.PreviewPanelDisplayName.Size = new System.Drawing.Size(322, 22);
            this.PreviewPanelDisplayName.SmallImageList = this.imageList1;
            this.PreviewPanelDisplayName.TabIndex = 7;
            this.PreviewPanelDisplayName.TabStop = false;
            this.PreviewPanelDisplayName.UseCompatibleStateImageBehavior = false;
            this.PreviewPanelDisplayName.View = System.Windows.Forms.View.Details;
            // 
            // btnToOutput
            // 
            this.btnToOutput.Dock = System.Windows.Forms.DockStyle.Right;
            this.btnToOutput.Image = ((System.Drawing.Image)(resources.GetObject("btnToOutput.Image")));
            this.btnToOutput.Location = new System.Drawing.Point(322, 0);
            this.btnToOutput.Name = "btnToOutput";
            this.btnToOutput.Size = new System.Drawing.Size(32, 22);
            this.btnToOutput.TabIndex = 6;
            this.toolTip1.SetToolTip(this.btnToOutput, "Copy to Output");
            this.btnToOutput.Click += new System.EventHandler(this.btnToOutput_Click);
            // 
            // panelPreviewBottom
            // 
            this.panelPreviewBottom.BackColor = System.Drawing.Color.Gray;
            this.panelPreviewBottom.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panelPreviewBottom.Controls.Add(this.panelPreviewSessionNotes2);
            this.panelPreviewBottom.Controls.Add(this.PreviewHolder);
            this.panelPreviewBottom.Controls.Add(this.PreviewBack);
            this.panelPreviewBottom.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panelPreviewBottom.Location = new System.Drawing.Point(0, 23);
            this.panelPreviewBottom.Name = "panelPreviewBottom";
            this.panelPreviewBottom.Size = new System.Drawing.Size(354, 18);
            this.panelPreviewBottom.TabIndex = 2;
            this.panelPreviewBottom.Resize += new System.EventHandler(this.panelPreviewBottom_Resize);
            // 
            // panelPreviewSessionNotes2
            // 
            this.panelPreviewSessionNotes2.BackColor = System.Drawing.SystemColors.Window;
            this.panelPreviewSessionNotes2.Controls.Add(this.PreviewNotes);
            this.panelPreviewSessionNotes2.Location = new System.Drawing.Point(93, 4);
            this.panelPreviewSessionNotes2.Name = "panelPreviewSessionNotes2";
            this.panelPreviewSessionNotes2.Size = new System.Drawing.Size(106, 16);
            this.panelPreviewSessionNotes2.TabIndex = 5;
            // 
            // PreviewNotes
            // 
            this.PreviewNotes.BackColor = System.Drawing.SystemColors.Window;
            this.PreviewNotes.Location = new System.Drawing.Point(47, 3);
            this.PreviewNotes.Name = "PreviewNotes";
            this.PreviewNotes.ReadOnly = true;
            this.PreviewNotes.Size = new System.Drawing.Size(30, 12);
            this.PreviewNotes.TabIndex = 4;
            this.PreviewNotes.Text = "";
            // 
            // PreviewHolder
            // 
            this.PreviewHolder.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
            this.PreviewHolder.Location = new System.Drawing.Point(7, 4);
            this.PreviewHolder.Name = "PreviewHolder";
            this.PreviewHolder.Size = new System.Drawing.Size(30, 13);
            this.PreviewHolder.TabIndex = 3;
            // 
            // PreviewBack
            // 
            this.PreviewBack.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
            this.PreviewBack.Location = new System.Drawing.Point(52, 4);
            this.PreviewBack.Name = "PreviewBack";
            this.PreviewBack.Size = new System.Drawing.Size(30, 13);
            this.PreviewBack.TabIndex = 2;
            // 
            // panel7
            // 
            this.panel7.BackColor = System.Drawing.SystemColors.Control;
            this.panel7.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel7.Location = new System.Drawing.Point(0, 22);
            this.panel7.Name = "panel7";
            this.panel7.Size = new System.Drawing.Size(354, 1);
            this.panel7.TabIndex = 1;
            // 
            // panel1
            // 
            this.panel1.BackColor = System.Drawing.SystemColors.Control;
            this.panel1.Controls.Add(this.flowLayoutPanel1);
            this.panel1.Controls.Add(this.panel3);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(354, 22);
            this.panel1.TabIndex = 0;
            // 
            // flowLayoutPanel1
            // 
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerse1);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerse2);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerse3);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerse4);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerse5);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerse6);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerse7);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerse8);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerse9);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVersePreChorus);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVersePreChorus2);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerseChorus);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerseChorus2);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerseBridge);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerseBridge2);
            this.flowLayoutPanel1.Controls.Add(this.PreviewBtnVerseEnding);
            this.flowLayoutPanel1.Location = new System.Drawing.Point(222, 0);
            this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(0);
            this.flowLayoutPanel1.Name = "flowLayoutPanel1";
            this.flowLayoutPanel1.Size = new System.Drawing.Size(248, 22);
            this.flowLayoutPanel1.TabIndex = 1;
            // 
            // PreviewBtnVerse1
            // 
            this.PreviewBtnVerse1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerse1.Location = new System.Drawing.Point(0, 0);
            this.PreviewBtnVerse1.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerse1.Name = "PreviewBtnVerse1";
            this.PreviewBtnVerse1.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerse1.TabIndex = 4;
            this.PreviewBtnVerse1.Tag = "1";
            this.PreviewBtnVerse1.Text = "1";
            this.PreviewBtnVerse1.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerse2
            // 
            this.PreviewBtnVerse2.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVerse2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerse2.Location = new System.Drawing.Point(15, 0);
            this.PreviewBtnVerse2.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerse2.Name = "PreviewBtnVerse2";
            this.PreviewBtnVerse2.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerse2.TabIndex = 18;
            this.PreviewBtnVerse2.Tag = "2";
            this.PreviewBtnVerse2.Text = "2";
            this.PreviewBtnVerse2.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerse3
            // 
            this.PreviewBtnVerse3.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVerse3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerse3.Location = new System.Drawing.Point(30, 0);
            this.PreviewBtnVerse3.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerse3.Name = "PreviewBtnVerse3";
            this.PreviewBtnVerse3.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerse3.TabIndex = 19;
            this.PreviewBtnVerse3.Tag = "3";
            this.PreviewBtnVerse3.Text = "3";
            this.PreviewBtnVerse3.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerse4
            // 
            this.PreviewBtnVerse4.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVerse4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerse4.Location = new System.Drawing.Point(45, 0);
            this.PreviewBtnVerse4.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerse4.Name = "PreviewBtnVerse4";
            this.PreviewBtnVerse4.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerse4.TabIndex = 20;
            this.PreviewBtnVerse4.Tag = "4";
            this.PreviewBtnVerse4.Text = "4";
            this.PreviewBtnVerse4.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerse5
            // 
            this.PreviewBtnVerse5.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVerse5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerse5.Location = new System.Drawing.Point(60, 0);
            this.PreviewBtnVerse5.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerse5.Name = "PreviewBtnVerse5";
            this.PreviewBtnVerse5.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerse5.TabIndex = 21;
            this.PreviewBtnVerse5.Tag = "5";
            this.PreviewBtnVerse5.Text = "5";
            this.PreviewBtnVerse5.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerse6
            // 
            this.PreviewBtnVerse6.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVerse6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerse6.Location = new System.Drawing.Point(75, 0);
            this.PreviewBtnVerse6.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerse6.Name = "PreviewBtnVerse6";
            this.PreviewBtnVerse6.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerse6.TabIndex = 22;
            this.PreviewBtnVerse6.Tag = "6";
            this.PreviewBtnVerse6.Text = "6";
            this.PreviewBtnVerse6.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerse7
            // 
            this.PreviewBtnVerse7.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVerse7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerse7.Location = new System.Drawing.Point(90, 0);
            this.PreviewBtnVerse7.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerse7.Name = "PreviewBtnVerse7";
            this.PreviewBtnVerse7.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerse7.TabIndex = 23;
            this.PreviewBtnVerse7.Tag = "7";
            this.PreviewBtnVerse7.Text = "7";
            this.PreviewBtnVerse7.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerse8
            // 
            this.PreviewBtnVerse8.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVerse8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerse8.Location = new System.Drawing.Point(105, 0);
            this.PreviewBtnVerse8.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerse8.Name = "PreviewBtnVerse8";
            this.PreviewBtnVerse8.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerse8.TabIndex = 24;
            this.PreviewBtnVerse8.Tag = "8";
            this.PreviewBtnVerse8.Text = "8";
            this.PreviewBtnVerse8.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerse9
            // 
            this.PreviewBtnVerse9.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVerse9.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerse9.Location = new System.Drawing.Point(120, 0);
            this.PreviewBtnVerse9.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerse9.Name = "PreviewBtnVerse9";
            this.PreviewBtnVerse9.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerse9.TabIndex = 25;
            this.PreviewBtnVerse9.Tag = "9";
            this.PreviewBtnVerse9.Text = "9";
            this.PreviewBtnVerse9.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVersePreChorus
            // 
            this.PreviewBtnVersePreChorus.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVersePreChorus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVersePreChorus.Location = new System.Drawing.Point(135, 0);
            this.PreviewBtnVersePreChorus.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVersePreChorus.Name = "PreviewBtnVersePreChorus";
            this.PreviewBtnVersePreChorus.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVersePreChorus.TabIndex = 26;
            this.PreviewBtnVersePreChorus.Tag = "111";
            this.PreviewBtnVersePreChorus.Text = "p";
            this.PreviewBtnVersePreChorus.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVersePreChorus2
            // 
            this.PreviewBtnVersePreChorus2.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnVersePreChorus2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVersePreChorus2.Location = new System.Drawing.Point(150, 0);
            this.PreviewBtnVersePreChorus2.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVersePreChorus2.Name = "PreviewBtnVersePreChorus2";
            this.PreviewBtnVersePreChorus2.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVersePreChorus2.TabIndex = 27;
            this.PreviewBtnVersePreChorus2.Tag = "112";
            this.PreviewBtnVersePreChorus2.Text = "q";
            this.PreviewBtnVersePreChorus2.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerseChorus
            // 
            this.PreviewBtnVerseChorus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerseChorus.Location = new System.Drawing.Point(165, 0);
            this.PreviewBtnVerseChorus.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerseChorus.Name = "PreviewBtnVerseChorus";
            this.PreviewBtnVerseChorus.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerseChorus.TabIndex = 28;
            this.PreviewBtnVerseChorus.Tag = "0";
            this.PreviewBtnVerseChorus.Text = "c";
            this.PreviewBtnVerseChorus.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerseChorus2
            // 
            this.PreviewBtnVerseChorus2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerseChorus2.Location = new System.Drawing.Point(180, 0);
            this.PreviewBtnVerseChorus2.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerseChorus2.Name = "PreviewBtnVerseChorus2";
            this.PreviewBtnVerseChorus2.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerseChorus2.TabIndex = 30;
            this.PreviewBtnVerseChorus2.Tag = "102";
            this.PreviewBtnVerseChorus2.Text = "t";
            this.PreviewBtnVerseChorus2.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerseBridge
            // 
            this.PreviewBtnVerseBridge.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerseBridge.Location = new System.Drawing.Point(195, 0);
            this.PreviewBtnVerseBridge.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerseBridge.Name = "PreviewBtnVerseBridge";
            this.PreviewBtnVerseBridge.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerseBridge.TabIndex = 29;
            this.PreviewBtnVerseBridge.Tag = "100";
            this.PreviewBtnVerseBridge.Text = "b";
            this.PreviewBtnVerseBridge.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerseBridge2
            // 
            this.PreviewBtnVerseBridge2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerseBridge2.Location = new System.Drawing.Point(210, 0);
            this.PreviewBtnVerseBridge2.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerseBridge2.Name = "PreviewBtnVerseBridge2";
            this.PreviewBtnVerseBridge2.Size = new System.Drawing.Size(17, 22);
            this.PreviewBtnVerseBridge2.TabIndex = 32;
            this.PreviewBtnVerseBridge2.Tag = "103";
            this.PreviewBtnVerseBridge2.Text = "w";
            this.PreviewBtnVerseBridge2.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // PreviewBtnVerseEnding
            // 
            this.PreviewBtnVerseEnding.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.PreviewBtnVerseEnding.Location = new System.Drawing.Point(227, 0);
            this.PreviewBtnVerseEnding.Margin = new System.Windows.Forms.Padding(0);
            this.PreviewBtnVerseEnding.Name = "PreviewBtnVerseEnding";
            this.PreviewBtnVerseEnding.Size = new System.Drawing.Size(15, 22);
            this.PreviewBtnVerseEnding.TabIndex = 31;
            this.PreviewBtnVerseEnding.Tag = "101";
            this.PreviewBtnVerseEnding.Text = "e";
            this.PreviewBtnVerseEnding.Click += new System.EventHandler(this.PreviewBtnVerse_Click);
            // 
            // panel3
            // 
            this.panel3.Controls.Add(this.PreviewBtnSlideDown);
            this.panel3.Controls.Add(this.PreviewBtnSlideUp);
            this.panel3.Controls.Add(this.PreviewBtnItemDown);
            this.panel3.Controls.Add(this.PreviewBtnItemUp);
            this.panel3.Controls.Add(this.IndradioButtonInfo);
            this.panel3.Controls.Add(this.IndradioButtonFormat);
            this.panel3.Controls.Add(this.IndradioButtonText);
            this.panel3.Controls.Add(this.IndcbPreviewNotes);
            this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
            this.panel3.Location = new System.Drawing.Point(0, 0);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(220, 22);
            this.panel3.TabIndex = 0;
            // 
            // PreviewBtnSlideDown
            // 
            this.PreviewBtnSlideDown.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnSlideDown.Image = global::Properties.Resources.down2;
            this.PreviewBtnSlideDown.Location = new System.Drawing.Point(194, 0);
            this.PreviewBtnSlideDown.Name = "PreviewBtnSlideDown";
            this.PreviewBtnSlideDown.Size = new System.Drawing.Size(22, 22);
            this.PreviewBtnSlideDown.TabIndex = 3;
            this.toolTip1.SetToolTip(this.PreviewBtnSlideDown, "Next Slide");
            this.PreviewBtnSlideDown.Click += new System.EventHandler(this.PreviewBtnUpDown_Click);
            // 
            // PreviewBtnSlideUp
            // 
            this.PreviewBtnSlideUp.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnSlideUp.Image = global::Properties.Resources.up4;
            this.PreviewBtnSlideUp.Location = new System.Drawing.Point(172, 0);
            this.PreviewBtnSlideUp.Name = "PreviewBtnSlideUp";
            this.PreviewBtnSlideUp.Size = new System.Drawing.Size(22, 22);
            this.PreviewBtnSlideUp.TabIndex = 2;
            this.toolTip1.SetToolTip(this.PreviewBtnSlideUp, "Previous Slide");
            this.PreviewBtnSlideUp.Click += new System.EventHandler(this.PreviewBtnUpDown_Click);
            // 
            // PreviewBtnItemDown
            // 
            this.PreviewBtnItemDown.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnItemDown.Image = global::Properties.Resources.down3;
            this.PreviewBtnItemDown.Location = new System.Drawing.Point(150, 0);
            this.PreviewBtnItemDown.Name = "PreviewBtnItemDown";
            this.PreviewBtnItemDown.Size = new System.Drawing.Size(22, 22);
            this.PreviewBtnItemDown.TabIndex = 7;
            this.toolTip1.SetToolTip(this.PreviewBtnItemDown, "Next Item");
            this.PreviewBtnItemDown.Click += new System.EventHandler(this.PreviewBtnUpDown_Click);
            // 
            // PreviewBtnItemUp
            // 
            this.PreviewBtnItemUp.Dock = System.Windows.Forms.DockStyle.Left;
            this.PreviewBtnItemUp.Image = global::Properties.Resources.up5;
            this.PreviewBtnItemUp.Location = new System.Drawing.Point(128, 0);
            this.PreviewBtnItemUp.Name = "PreviewBtnItemUp";
            this.PreviewBtnItemUp.Size = new System.Drawing.Size(22, 22);
            this.PreviewBtnItemUp.TabIndex = 6;
            this.toolTip1.SetToolTip(this.PreviewBtnItemUp, "Previous Item");
            this.PreviewBtnItemUp.Click += new System.EventHandler(this.PreviewBtnUpDown_Click);
            // 
            // IndradioButtonInfo
            // 
            this.IndradioButtonInfo.Appearance = System.Windows.Forms.Appearance.Button;
            this.IndradioButtonInfo.AutoSize = true;
            this.IndradioButtonInfo.Dock = System.Windows.Forms.DockStyle.Left;
            this.IndradioButtonInfo.Location = new System.Drawing.Point(93, 0);
            this.IndradioButtonInfo.Name = "IndradioButtonInfo";
            this.IndradioButtonInfo.Size = new System.Drawing.Size(35, 22);
            this.IndradioButtonInfo.TabIndex = 8;
            this.IndradioButtonInfo.Text = "Info";
            this.IndradioButtonInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.IndradioButtonInfo.Click += new System.EventHandler(this.IndradioButtonTextFormatInfo_Click);
            // 
            // IndradioButtonFormat
            // 
            this.IndradioButtonFormat.Appearance = System.Windows.Forms.Appearance.Button;
            this.IndradioButtonFormat.AutoSize = true;
            this.IndradioButtonFormat.Dock = System.Windows.Forms.DockStyle.Left;
            this.IndradioButtonFormat.Location = new System.Drawing.Point(60, 0);
            this.IndradioButtonFormat.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
            this.IndradioButtonFormat.Name = "IndradioButtonFormat";
            this.IndradioButtonFormat.Size = new System.Drawing.Size(33, 22);
            this.IndradioButtonFormat.TabIndex = 5;
            this.IndradioButtonFormat.Text = "Set";
            this.IndradioButtonFormat.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.toolTip1.SetToolTip(this.IndradioButtonFormat, "Format Text");
            this.IndradioButtonFormat.Click += new System.EventHandler(this.IndradioButtonTextFormatInfo_Click);
            // 
            // IndradioButtonText
            // 
            this.IndradioButtonText.Appearance = System.Windows.Forms.Appearance.Button;
            this.IndradioButtonText.AutoSize = true;
            this.IndradioButtonText.Dock = System.Windows.Forms.DockStyle.Left;
            this.IndradioButtonText.Location = new System.Drawing.Point(22, 0);
            this.IndradioButtonText.Name = "IndradioButtonText";
            this.IndradioButtonText.Size = new System.Drawing.Size(38, 22);
            this.IndradioButtonText.TabIndex = 4;
            this.IndradioButtonText.Text = "Text";
            this.IndradioButtonText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.IndradioButtonText.Click += new System.EventHandler(this.IndradioButtonTextFormatInfo_Click);
            // 
            // IndcbPreviewNotes
            // 
            this.IndcbPreviewNotes.Appearance = System.Windows.Forms.Appearance.Button;
            this.IndcbPreviewNotes.AutoSize = true;
            this.IndcbPreviewNotes.Dock = System.Windows.Forms.DockStyle.Left;
            this.IndcbPreviewNotes.Image = global::Properties.Resources.note;
            this.IndcbPreviewNotes.Location = new System.Drawing.Point(0, 0);
            this.IndcbPreviewNotes.Name = "IndcbPreviewNotes";
            this.IndcbPreviewNotes.Size = new System.Drawing.Size(22, 22);
            this.IndcbPreviewNotes.TabIndex = 11;
            this.toolTip1.SetToolTip(this.IndcbPreviewNotes, "Show Session Notes");
            this.IndcbPreviewNotes.UseVisualStyleBackColor = true;
            this.IndcbPreviewNotes.Click += new System.EventHandler(this.IndcbPreviewNotes_Click);
            // 
            // splitContainerOutput
            // 
            this.splitContainerOutput.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainerOutput.Location = new System.Drawing.Point(0, 0);
            this.splitContainerOutput.Name = "splitContainerOutput";
            this.splitContainerOutput.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainerOutput.Panel1
            // 
            this.splitContainerOutput.Panel1.Controls.Add(this.panelOutputTop);
            this.splitContainerOutput.Panel1.Controls.Add(this.panel10);
            this.splitContainerOutput.Panel1MinSize = 50;
            // 
            // splitContainerOutput.Panel2
            // 
            this.splitContainerOutput.Panel2.BackColor = System.Drawing.SystemColors.Control;
            this.splitContainerOutput.Panel2.Controls.Add(this.panelOutputBottom);
            this.splitContainerOutput.Panel2.Controls.Add(this.panel8);
            this.splitContainerOutput.Panel2.Controls.Add(this.panel2);
            this.splitContainerOutput.Size = new System.Drawing.Size(236, 414);
            this.splitContainerOutput.SplitterDistance = 305;
            this.splitContainerOutput.SplitterWidth = 3;
            this.splitContainerOutput.TabIndex = 0;
            this.splitContainerOutput.Text = "splitContainer3";
            // 
            // panelOutputTop
            // 
            this.panelOutputTop.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panelOutputTop.Controls.Add(this.flowLayoutOutputPowerPoint);
            this.panelOutputTop.Controls.Add(this.flowLayoutOutputLyrics);
            this.panelOutputTop.Controls.Add(this.OutputInfo);
            this.panelOutputTop.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panelOutputTop.Location = new System.Drawing.Point(0, 22);
            this.panelOutputTop.Name = "panelOutputTop";
            this.panelOutputTop.Size = new System.Drawing.Size(236, 283);
            this.panelOutputTop.TabIndex = 0;
            this.panelOutputTop.Resize += new System.EventHandler(this.panelOutputTop_Resize);
            // 
            // flowLayoutOutputPowerPoint
            // 
            this.flowLayoutOutputPowerPoint.AutoScroll = true;
            this.flowLayoutOutputPowerPoint.Location = new System.Drawing.Point(11, 143);
            this.flowLayoutOutputPowerPoint.Name = "flowLayoutOutputPowerPoint";
            this.flowLayoutOutputPowerPoint.Size = new System.Drawing.Size(59, 35);
            this.flowLayoutOutputPowerPoint.TabIndex = 6;
            // 
            // flowLayoutOutputLyrics
            // 
            this.flowLayoutOutputLyrics.AutoScroll = true;
            this.flowLayoutOutputLyrics.BackColor = System.Drawing.SystemColors.Window;
            this.flowLayoutOutputLyrics.Location = new System.Drawing.Point(11, 22);
            this.flowLayoutOutputLyrics.Name = "flowLayoutOutputLyrics";
            this.flowLayoutOutputLyrics.Size = new System.Drawing.Size(63, 44);
            this.flowLayoutOutputLyrics.TabIndex = 7;
            this.flowLayoutOutputLyrics.Click += new System.EventHandler(this.flowLayoutOutputLyrics_Click);
            this.flowLayoutOutputLyrics.Leave += new System.EventHandler(this.flowLayoutOutputLyrics_Leave);
            // 
            // OutputInfo
            // 
            this.OutputInfo.Location = new System.Drawing.Point(11, 6);
            this.OutputInfo.Name = "OutputInfo";
            this.OutputInfo.Size = new System.Drawing.Size(16, 20);
            this.OutputInfo.TabIndex = 9;
            this.OutputInfo.KeyUp += new System.Windows.Forms.KeyEventHandler(this.OutputInfo_KeyUp);
            // 
            // panel10
            // 
            this.panel10.Controls.Add(this.cbOutputBlack);
            this.panel10.Controls.Add(this.cbOutputClear);
            this.panel10.Controls.Add(this.cbOutputCam);
            this.panel10.Controls.Add(this.OutputPanelDisplayName);
            this.panel10.Controls.Add(this.cbGoLive);
            this.panel10.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel10.Location = new System.Drawing.Point(0, 0);
            this.panel10.Name = "panel10";
            this.panel10.Size = new System.Drawing.Size(236, 22);
            this.panel10.TabIndex = 1;
            // 
            // cbOutputBlack
            // 
            this.cbOutputBlack.Appearance = System.Windows.Forms.Appearance.Button;
            this.cbOutputBlack.Dock = System.Windows.Forms.DockStyle.Right;
            this.cbOutputBlack.ImageIndex = 2;
            this.cbOutputBlack.ImageList = this.imageList1;
            this.cbOutputBlack.Location = new System.Drawing.Point(104, 0);
            this.cbOutputBlack.Name = "cbOutputBlack";
            this.cbOutputBlack.Size = new System.Drawing.Size(30, 22);
            this.cbOutputBlack.TabIndex = 2;
            this.cbOutputBlack.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.toolTip1.SetToolTip(this.cbOutputBlack, "Black Screen");
            this.cbOutputBlack.Click += new System.EventHandler(this.cbOutputBlack_Click);
            // 
            // cbOutputClear
            // 
            this.cbOutputClear.Appearance = System.Windows.Forms.Appearance.Button;
            this.cbOutputClear.Dock = System.Windows.Forms.DockStyle.Right;
            this.cbOutputClear.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
            this.cbOutputClear.ImageIndex = 4;
            this.cbOutputClear.ImageList = this.imageList1;
            this.cbOutputClear.Location = new System.Drawing.Point(134, 0);
            this.cbOutputClear.Name = "cbOutputClear";
            this.cbOutputClear.Size = new System.Drawing.Size(30, 22);
            this.cbOutputClear.TabIndex = 1;
            this.cbOutputClear.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.toolTip1.SetToolTip(this.cbOutputClear, "Hide Text");
            this.cbOutputClear.Click += new System.EventHandler(this.cbOutputClear_Click);
            // 
            // cbOutputCam
            // 
            this.cbOutputCam.Appearance = System.Windows.Forms.Appearance.Button;
            this.cbOutputCam.Dock = System.Windows.Forms.DockStyle.Right;
            this.cbOutputCam.ImageIndex = 6;
            this.cbOutputCam.ImageList = this.imageList1;
            this.cbOutputCam.Location = new System.Drawing.Point(164, 0);
            this.cbOutputCam.Name = "cbOutputCam";
            this.cbOutputCam.Size = new System.Drawing.Size(30, 22);
            this.cbOutputCam.TabIndex = 9;
            this.cbOutputCam.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.toolTip1.SetToolTip(this.cbOutputCam, "Live Cam");
            this.cbOutputCam.Click += new System.EventHandler(this.cbOutputCam_Click);
            // 
            // OutputPanelDisplayName
            // 
            this.OutputPanelDisplayName.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader16});
            this.OutputPanelDisplayName.Dock = System.Windows.Forms.DockStyle.Fill;
            this.OutputPanelDisplayName.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.OutputPanelDisplayName.LabelWrap = false;
            this.OutputPanelDisplayName.Location = new System.Drawing.Point(0, 0);
            this.OutputPanelDisplayName.MultiSelect = false;
            this.OutputPanelDisplayName.Name = "OutputPanelDisplayName";
            this.OutputPanelDisplayName.Scrollable = false;
            this.OutputPanelDisplayName.ShowItemToolTips = true;
            this.OutputPanelDisplayName.Size = new System.Drawing.Size(194, 22);
            this.OutputPanelDisplayName.SmallImageList = this.imageList1;
            this.OutputPanelDisplayName.TabIndex = 8;
            this.OutputPanelDisplayName.TabStop = false;
            this.OutputPanelDisplayName.UseCompatibleStateImageBehavior = false;
            this.OutputPanelDisplayName.View = System.Windows.Forms.View.Details;
            // 
            // cbGoLive
            // 
            this.cbGoLive.Appearance = System.Windows.Forms.Appearance.Button;
            this.cbGoLive.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.cbGoLive.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.cbGoLive.Dock = System.Windows.Forms.DockStyle.Right;
            this.cbGoLive.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cbGoLive.ImageIndex = 8;
            this.cbGoLive.ImageList = this.imageList1;
            this.cbGoLive.Location = new System.Drawing.Point(194, 0);
            this.cbGoLive.Name = "cbGoLive";
            this.cbGoLive.Size = new System.Drawing.Size(42, 22);
            this.cbGoLive.TabIndex = 3;
            this.cbGoLive.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.toolTip1.SetToolTip(this.cbGoLive, "Start Show");
            this.cbGoLive.Click += new System.EventHandler(this.cbGoLive_Click);
            // 
            // panelOutputBottom
            // 
            this.panelOutputBottom.BackColor = System.Drawing.Color.Gray;
            this.panelOutputBottom.Controls.Add(this.panelOutputLM1);
            this.panelOutputBottom.Controls.Add(this.OutputHolder);
            this.panelOutputBottom.Controls.Add(this.OutputBack);
            this.panelOutputBottom.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panelOutputBottom.Location = new System.Drawing.Point(0, 40);
            this.panelOutputBottom.Name = "panelOutputBottom";
            this.panelOutputBottom.Size = new System.Drawing.Size(236, 66);
            this.panelOutputBottom.TabIndex = 3;
            this.panelOutputBottom.Resize += new System.EventHandler(this.panelOutputBottom_Resize);
            // 
            // panelOutputLM1
            // 
            this.panelOutputLM1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.panelOutputLM1.Controls.Add(this.OutputTextBoxLM);
            this.panelOutputLM1.Controls.Add(this.panelOutputLM2);
            this.panelOutputLM1.Controls.Add(this.panelOutputLM3);
            this.panelOutputLM1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panelOutputLM1.Location = new System.Drawing.Point(0, 42);
            this.panelOutputLM1.Name = "panelOutputLM1";
            this.panelOutputLM1.Size = new System.Drawing.Size(236, 24);
            this.panelOutputLM1.TabIndex = 7;
            // 
            // OutputTextBoxLM
            // 
            this.OutputTextBoxLM.Dock = System.Windows.Forms.DockStyle.Fill;
            this.OutputTextBoxLM.Location = new System.Drawing.Point(0, 2);
            this.OutputTextBoxLM.Name = "OutputTextBoxLM";
            this.OutputTextBoxLM.Size = new System.Drawing.Size(186, 20);
            this.OutputTextBoxLM.TabIndex = 15;
            this.OutputTextBoxLM.WordWrap = false;
            this.OutputTextBoxLM.KeyUp += new System.Windows.Forms.KeyEventHandler(this.OutputTextBoxLM_KeyUp);
            // 
            // panelOutputLM2
            // 
            this.panelOutputLM2.Dock = System.Windows.Forms.DockStyle.Top;
            this.panelOutputLM2.Location = new System.Drawing.Point(0, 0);
            this.panelOutputLM2.Name = "panelOutputLM2";
            this.panelOutputLM2.Size = new System.Drawing.Size(186, 2);
            this.panelOutputLM2.TabIndex = 14;
            // 
            // panelOutputLM3
            // 
            this.panelOutputLM3.Controls.Add(this.OutputBtnLMSend);
            this.panelOutputLM3.Controls.Add(this.OutputBtnLMClear);
            this.panelOutputLM3.Dock = System.Windows.Forms.DockStyle.Right;
            this.panelOutputLM3.Location = new System.Drawing.Point(186, 0);
            this.panelOutputLM3.Name = "panelOutputLM3";
            this.panelOutputLM3.Size = new System.Drawing.Size(46, 20);
            this.panelOutputLM3.TabIndex = 13;
            // 
            // OutputBtnLMSend
            // 
            this.OutputBtnLMSend.BackColor = System.Drawing.SystemColors.ButtonFace;
            this.OutputBtnLMSend.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.OutputBtnLMSend.Location = new System.Drawing.Point(1, -1);
            this.OutputBtnLMSend.Name = "OutputBtnLMSend";
            this.OutputBtnLMSend.Size = new System.Drawing.Size(23, 22);
            this.OutputBtnLMSend.TabIndex = 9;
            this.toolTip1.SetToolTip(this.OutputBtnLMSend, "Send Message to Lyrics Monitor");
            this.OutputBtnLMSend.UseVisualStyleBackColor = false;
            this.OutputBtnLMSend.Click += new System.EventHandler(this.OutputBtnLMSend_Click);
            // 
            // OutputBtnLMClear
            // 
            this.OutputBtnLMClear.BackColor = System.Drawing.SystemColors.ButtonFace;
            this.OutputBtnLMClear.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.OutputBtnLMClear.Location = new System.Drawing.Point(23, -1);
            this.OutputBtnLMClear.Name = "OutputBtnLMClear";
            this.OutputBtnLMClear.Size = new System.Drawing.Size(23, 22);
            this.OutputBtnLMClear.TabIndex = 11;
            this.toolTip1.SetToolTip(this.OutputBtnLMClear, "Clear Lyrics Monitor Message");
            this.OutputBtnLMClear.UseVisualStyleBackColor = false;
            this.OutputBtnLMClear.Click += new System.EventHandler(this.OutputBtnLMClear_Click);
            // 
            // OutputHolder
            // 
            this.OutputHolder.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
            this.OutputHolder.Location = new System.Drawing.Point(3, 38);
            this.OutputHolder.Name = "OutputHolder";
            this.OutputHolder.Size = new System.Drawing.Size(30, 13);
            this.OutputHolder.TabIndex = 5;
            // 
            // OutputBack
            // 
            this.OutputBack.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
            this.OutputBack.Location = new System.Drawing.Point(48, 38);
            this.OutputBack.Name = "OutputBack";
            this.OutputBack.Size = new System.Drawing.Size(30, 13);
            this.OutputBack.TabIndex = 4;
            // 
            // panel8
            // 
            this.panel8.BackColor = System.Drawing.SystemColors.Control;
            this.panel8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panel8.Controls.Add(this.labelGapItem);
            this.panel8.Controls.Add(this.labelHideText);
            this.panel8.Controls.Add(this.labelBlackScreen);
            this.panel8.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel8.Location = new System.Drawing.Point(0, 22);
            this.panel8.Name = "panel8";
            this.panel8.Size = new System.Drawing.Size(236, 18);
            this.panel8.TabIndex = 2;
            // 
            // labelGapItem
            // 
            this.labelGapItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            this.labelGapItem.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.labelGapItem.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelGapItem.Location = new System.Drawing.Point(109, 2);
            this.labelGapItem.Name = "labelGapItem";
            this.labelGapItem.Size = new System.Drawing.Size(66, 16);
            this.labelGapItem.TabIndex = 6;
            this.labelGapItem.Text = "Gap Item";
            this.labelGapItem.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.labelGapItem.Visible = false;
            // 
            // labelHideText
            // 
            this.labelHideText.BackColor = System.Drawing.Color.PowderBlue;
            this.labelHideText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.labelHideText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelHideText.Location = new System.Drawing.Point(63, 2);
            this.labelHideText.Name = "labelHideText";
            this.labelHideText.Size = new System.Drawing.Size(66, 16);
            this.labelHideText.TabIndex = 1;
            this.labelHideText.Text = "Hide Text";
            this.labelHideText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.labelHideText.Visible = false;
            // 
            // labelBlackScreen
            // 
            this.labelBlackScreen.BackColor = System.Drawing.Color.White;
            this.labelBlackScreen.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.labelBlackScreen.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelBlackScreen.ForeColor = System.Drawing.Color.Black;
            this.labelBlackScreen.Location = new System.Drawing.Point(0, 2);
            this.labelBlackScreen.Name = "labelBlackScreen";
            this.labelBlackScreen.Size = new System.Drawing.Size(84, 16);
            this.labelBlackScreen.TabIndex = 0;
            this.labelBlackScreen.Text = "Black Screen";
            this.labelBlackScreen.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.labelBlackScreen.Visible = false;
            // 
            // panel2
            // 
            this.panel2.BackColor = System.Drawing.SystemColors.Control;
            this.panel2.Controls.Add(this.flowLayoutPanel2);
            this.panel2.Controls.Add(this.panel6);
            this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(236, 22);
            this.panel2.TabIndex = 1;
            // 
            // flowLayoutPanel2
            // 
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerse1);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerse2);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerse3);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerse4);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerse5);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerse6);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerse7);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerse8);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerse9);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVersePreChorus);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVersePreChorus2);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerseChorus);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerseChorus2);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerseBridge);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerseBridge2);
            this.flowLayoutPanel2.Controls.Add(this.OutputBtnVerseEnding);
            this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Left;
            this.flowLayoutPanel2.Location = new System.Drawing.Point(162, 0);
            this.flowLayoutPanel2.Margin = new System.Windows.Forms.Padding(0);
            this.flowLayoutPanel2.Name = "flowLayoutPanel2";
            this.flowLayoutPanel2.Size = new System.Drawing.Size(251, 22);
            this.flowLayoutPanel2.TabIndex = 8;
            // 
            // OutputBtnVerse1
            // 
            this.OutputBtnVerse1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerse1.Location = new System.Drawing.Point(0, 0);
            this.OutputBtnVerse1.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerse1.Name = "OutputBtnVerse1";
            this.OutputBtnVerse1.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerse1.TabIndex = 20;
            this.OutputBtnVerse1.Tag = "1";
            this.OutputBtnVerse1.Text = "1";
            this.OutputBtnVerse1.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerse2
            // 
            this.OutputBtnVerse2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerse2.Location = new System.Drawing.Point(15, 0);
            this.OutputBtnVerse2.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerse2.Name = "OutputBtnVerse2";
            this.OutputBtnVerse2.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerse2.TabIndex = 21;
            this.OutputBtnVerse2.Tag = "2";
            this.OutputBtnVerse2.Text = "2";
            this.OutputBtnVerse2.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerse3
            // 
            this.OutputBtnVerse3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerse3.Location = new System.Drawing.Point(30, 0);
            this.OutputBtnVerse3.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerse3.Name = "OutputBtnVerse3";
            this.OutputBtnVerse3.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerse3.TabIndex = 22;
            this.OutputBtnVerse3.Tag = "3";
            this.OutputBtnVerse3.Text = "3";
            this.OutputBtnVerse3.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerse4
            // 
            this.OutputBtnVerse4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerse4.Location = new System.Drawing.Point(45, 0);
            this.OutputBtnVerse4.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerse4.Name = "OutputBtnVerse4";
            this.OutputBtnVerse4.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerse4.TabIndex = 23;
            this.OutputBtnVerse4.Tag = "4";
            this.OutputBtnVerse4.Text = "4";
            this.OutputBtnVerse4.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerse5
            // 
            this.OutputBtnVerse5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerse5.Location = new System.Drawing.Point(60, 0);
            this.OutputBtnVerse5.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerse5.Name = "OutputBtnVerse5";
            this.OutputBtnVerse5.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerse5.TabIndex = 24;
            this.OutputBtnVerse5.Tag = "5";
            this.OutputBtnVerse5.Text = "5";
            this.OutputBtnVerse5.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerse6
            // 
            this.OutputBtnVerse6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerse6.Location = new System.Drawing.Point(75, 0);
            this.OutputBtnVerse6.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerse6.Name = "OutputBtnVerse6";
            this.OutputBtnVerse6.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerse6.TabIndex = 25;
            this.OutputBtnVerse6.Tag = "6";
            this.OutputBtnVerse6.Text = "6";
            this.OutputBtnVerse6.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerse7
            // 
            this.OutputBtnVerse7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerse7.Location = new System.Drawing.Point(90, 0);
            this.OutputBtnVerse7.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerse7.Name = "OutputBtnVerse7";
            this.OutputBtnVerse7.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerse7.TabIndex = 26;
            this.OutputBtnVerse7.Tag = "7";
            this.OutputBtnVerse7.Text = "7";
            this.OutputBtnVerse7.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerse8
            // 
            this.OutputBtnVerse8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerse8.Location = new System.Drawing.Point(105, 0);
            this.OutputBtnVerse8.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerse8.Name = "OutputBtnVerse8";
            this.OutputBtnVerse8.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerse8.TabIndex = 27;
            this.OutputBtnVerse8.Tag = "8";
            this.OutputBtnVerse8.Text = "8";
            this.OutputBtnVerse8.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerse9
            // 
            this.OutputBtnVerse9.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerse9.Location = new System.Drawing.Point(120, 0);
            this.OutputBtnVerse9.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerse9.Name = "OutputBtnVerse9";
            this.OutputBtnVerse9.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerse9.TabIndex = 28;
            this.OutputBtnVerse9.Tag = "9";
            this.OutputBtnVerse9.Text = "9";
            this.OutputBtnVerse9.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVersePreChorus
            // 
            this.OutputBtnVersePreChorus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVersePreChorus.Location = new System.Drawing.Point(135, 0);
            this.OutputBtnVersePreChorus.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVersePreChorus.Name = "OutputBtnVersePreChorus";
            this.OutputBtnVersePreChorus.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVersePreChorus.TabIndex = 33;
            this.OutputBtnVersePreChorus.Tag = "111";
            this.OutputBtnVersePreChorus.Text = "p";
            this.OutputBtnVersePreChorus.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVersePreChorus2
            // 
            this.OutputBtnVersePreChorus2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVersePreChorus2.Location = new System.Drawing.Point(150, 0);
            this.OutputBtnVersePreChorus2.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVersePreChorus2.Name = "OutputBtnVersePreChorus2";
            this.OutputBtnVersePreChorus2.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVersePreChorus2.TabIndex = 34;
            this.OutputBtnVersePreChorus2.Tag = "112";
            this.OutputBtnVersePreChorus2.Text = "q";
            this.OutputBtnVersePreChorus2.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerseChorus
            // 
            this.OutputBtnVerseChorus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerseChorus.Location = new System.Drawing.Point(165, 0);
            this.OutputBtnVerseChorus.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerseChorus.Name = "OutputBtnVerseChorus";
            this.OutputBtnVerseChorus.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerseChorus.TabIndex = 29;
            this.OutputBtnVerseChorus.Tag = "0";
            this.OutputBtnVerseChorus.Text = "c";
            this.OutputBtnVerseChorus.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerseChorus2
            // 
            this.OutputBtnVerseChorus2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerseChorus2.Location = new System.Drawing.Point(180, 0);
            this.OutputBtnVerseChorus2.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerseChorus2.Name = "OutputBtnVerseChorus2";
            this.OutputBtnVerseChorus2.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerseChorus2.TabIndex = 31;
            this.OutputBtnVerseChorus2.Tag = "102";
            this.OutputBtnVerseChorus2.Text = "t";
            this.OutputBtnVerseChorus2.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerseBridge
            // 
            this.OutputBtnVerseBridge.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerseBridge.Location = new System.Drawing.Point(195, 0);
            this.OutputBtnVerseBridge.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerseBridge.Name = "OutputBtnVerseBridge";
            this.OutputBtnVerseBridge.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerseBridge.TabIndex = 30;
            this.OutputBtnVerseBridge.Tag = "100";
            this.OutputBtnVerseBridge.Text = "b";
            this.OutputBtnVerseBridge.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerseBridge2
            // 
            this.OutputBtnVerseBridge2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerseBridge2.Location = new System.Drawing.Point(210, 0);
            this.OutputBtnVerseBridge2.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerseBridge2.Name = "OutputBtnVerseBridge2";
            this.OutputBtnVerseBridge2.Size = new System.Drawing.Size(17, 22);
            this.OutputBtnVerseBridge2.TabIndex = 35;
            this.OutputBtnVerseBridge2.Tag = "103";
            this.OutputBtnVerseBridge2.Text = "w";
            this.OutputBtnVerseBridge2.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // OutputBtnVerseEnding
            // 
            this.OutputBtnVerseEnding.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.OutputBtnVerseEnding.Location = new System.Drawing.Point(227, 0);
            this.OutputBtnVerseEnding.Margin = new System.Windows.Forms.Padding(0);
            this.OutputBtnVerseEnding.Name = "OutputBtnVerseEnding";
            this.OutputBtnVerseEnding.Size = new System.Drawing.Size(15, 22);
            this.OutputBtnVerseEnding.TabIndex = 32;
            this.OutputBtnVerseEnding.Tag = "101";
            this.OutputBtnVerseEnding.Text = "e";
            this.OutputBtnVerseEnding.Click += new System.EventHandler(this.OutputBtnVerse_Click);
            // 
            // panel6
            // 
            this.panel6.Controls.Add(this.OutputBtnSlideDown);
            this.panel6.Controls.Add(this.OutputBtnSlideUp);
            this.panel6.Controls.Add(this.OutputBtnItemDown);
            this.panel6.Controls.Add(this.OutputBtnItemUp);
            this.panel6.Controls.Add(this.OutputBtnRefAlert);
            this.panel6.Controls.Add(this.OutputBtnMedia);
            this.panel6.Controls.Add(this.OutputBtnJumpToNonRotate);
            this.panel6.Dock = System.Windows.Forms.DockStyle.Left;
            this.panel6.Location = new System.Drawing.Point(0, 0);
            this.panel6.Name = "panel6";
            this.panel6.Size = new System.Drawing.Size(162, 22);
            this.panel6.TabIndex = 1;
            // 
            // OutputBtnSlideDown
            // 
            this.OutputBtnSlideDown.Dock = System.Windows.Forms.DockStyle.Left;
            this.OutputBtnSlideDown.Image = global::Properties.Resources.down2;
            this.OutputBtnSlideDown.Location = new System.Drawing.Point(135, 0);
            this.OutputBtnSlideDown.Name = "OutputBtnSlideDown";
            this.OutputBtnSlideDown.Size = new System.Drawing.Size(22, 22);
            this.OutputBtnSlideDown.TabIndex = 5;
            this.toolTip1.SetToolTip(this.OutputBtnSlideDown, "Next Slide");
            this.OutputBtnSlideDown.Click += new System.EventHandler(this.OutputBtnUpDown_Click);
            // 
            // OutputBtnSlideUp
            // 
            this.OutputBtnSlideUp.Dock = System.Windows.Forms.DockStyle.Left;
            this.OutputBtnSlideUp.Image = global::Properties.Resources.up4;
            this.OutputBtnSlideUp.Location = new System.Drawing.Point(113, 0);
            this.OutputBtnSlideUp.Name = "OutputBtnSlideUp";
            this.OutputBtnSlideUp.Size = new System.Drawing.Size(22, 22);
            this.OutputBtnSlideUp.TabIndex = 4;
            this.toolTip1.SetToolTip(this.OutputBtnSlideUp, "Previous Slide");
            this.OutputBtnSlideUp.Click += new System.EventHandler(this.OutputBtnUpDown_Click);
            // 
            // OutputBtnItemDown
            // 
            this.OutputBtnItemDown.Dock = System.Windows.Forms.DockStyle.Left;
            this.OutputBtnItemDown.Image = global::Properties.Resources.down3;
            this.OutputBtnItemDown.Location = new System.Drawing.Point(91, 0);
            this.OutputBtnItemDown.Name = "OutputBtnItemDown";
            this.OutputBtnItemDown.Size = new System.Drawing.Size(22, 22);
            this.OutputBtnItemDown.TabIndex = 3;
            this.toolTip1.SetToolTip(this.OutputBtnItemDown, "Next Item");
            this.OutputBtnItemDown.Click += new System.EventHandler(this.OutputBtnUpDown_Click);
            // 
            // OutputBtnItemUp
            // 
            this.OutputBtnItemUp.Dock = System.Windows.Forms.DockStyle.Left;
            this.OutputBtnItemUp.Image = global::Properties.Resources.up5;
            this.OutputBtnItemUp.Location = new System.Drawing.Point(69, 0);
            this.OutputBtnItemUp.Name = "OutputBtnItemUp";
            this.OutputBtnItemUp.Size = new System.Drawing.Size(22, 22);
            this.OutputBtnItemUp.TabIndex = 2;
            this.toolTip1.SetToolTip(this.OutputBtnItemUp, "Previous Item");
            this.OutputBtnItemUp.Click += new System.EventHandler(this.OutputBtnUpDown_Click);
            // 
            // OutputBtnRefAlert
            // 
            this.OutputBtnRefAlert.Dock = System.Windows.Forms.DockStyle.Left;
            this.OutputBtnRefAlert.Image = global::Properties.Resources.error;
            this.OutputBtnRefAlert.Location = new System.Drawing.Point(46, 0);
            this.OutputBtnRefAlert.Name = "OutputBtnRefAlert";
            this.OutputBtnRefAlert.Size = new System.Drawing.Size(23, 22);
            this.OutputBtnRefAlert.TabIndex = 6;
            this.toolTip1.SetToolTip(this.OutputBtnRefAlert, "Show/Stop Reference Alert");
            this.OutputBtnRefAlert.Click += new System.EventHandler(this.OutputBtnRefAlert_Click);
            // 
            // OutputBtnMedia
            // 
            this.OutputBtnMedia.Dock = System.Windows.Forms.DockStyle.Left;
            this.OutputBtnMedia.Image = global::Properties.Resources.movie;
            this.OutputBtnMedia.Location = new System.Drawing.Point(23, 0);
            this.OutputBtnMedia.Name = "OutputBtnMedia";
            this.OutputBtnMedia.Size = new System.Drawing.Size(23, 22);
            this.OutputBtnMedia.TabIndex = 7;
            this.toolTip1.SetToolTip(this.OutputBtnMedia, "Media Pause/Resume");
            this.OutputBtnMedia.Click += new System.EventHandler(this.OutputBtnMedia_Click);
            // 
            // OutputBtnJumpToNonRotate
            // 
            this.OutputBtnJumpToNonRotate.Dock = System.Windows.Forms.DockStyle.Left;
            this.OutputBtnJumpToNonRotate.Image = global::Properties.Resources.jump2;
            this.OutputBtnJumpToNonRotate.Location = new System.Drawing.Point(0, 0);
            this.OutputBtnJumpToNonRotate.Name = "OutputBtnJumpToNonRotate";
            this.OutputBtnJumpToNonRotate.Size = new System.Drawing.Size(23, 22);
            this.OutputBtnJumpToNonRotate.TabIndex = 8;
            this.toolTip1.SetToolTip(this.OutputBtnJumpToNonRotate, "Jump To Non-Rotating Item");
            this.OutputBtnJumpToNonRotate.Click += new System.EventHandler(this.OutputBtnJumpToNonRotate_Click);
            // 
            // toolStripMain
            // 
            this.toolStripMain.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStripMain.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolStripMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Main_New,
            this.Main_Edit,
            this.Main_Copy,
            this.Main_Move,
            this.Main_Delete,
            this.toolStripSeparator1,
            this.Main_Media,
            this.Main_Refresh,
            this.toolStripSeparator2,
            this.Main_Options,
            this.toolStripSeparator3,
            this.Main_NoRotate,
            this.Main_RotateStyle,
            this.Main_Alerts,
            this.Main_Chinese,
            this.toolStripSeparator4,
            this.Main_Find,
            this.Main_QuickFind,
            this.Main_JumpA,
            this.Main_JumpB,
            this.Main_JumpC});
            this.toolStripMain.Location = new System.Drawing.Point(3, 0);
            this.toolStripMain.Name = "toolStripMain";
            this.toolStripMain.Size = new System.Drawing.Size(494, 25);
            this.toolStripMain.TabIndex = 0;
            this.toolStripMain.Text = "toolStrip1";
            // 
            // Main_New
            // 
            this.Main_New.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_New.Image = global::Properties.Resources._new;
            this.Main_New.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_New.Name = "Main_New";
            this.Main_New.Size = new System.Drawing.Size(23, 22);
            this.Main_New.Tag = "";
            this.Main_New.ToolTipText = "New";
            this.Main_New.Click += new System.EventHandler(this.Main_EditBtns_Click);
            // 
            // Main_Edit
            // 
            this.Main_Edit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Edit.Image = ((System.Drawing.Image)(resources.GetObject("Main_Edit.Image")));
            this.Main_Edit.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Edit.Name = "Main_Edit";
            this.Main_Edit.Size = new System.Drawing.Size(23, 22);
            this.Main_Edit.Tag = "";
            this.Main_Edit.ToolTipText = "Edit";
            this.Main_Edit.Click += new System.EventHandler(this.Main_EditBtns_Click);
            // 
            // Main_Copy
            // 
            this.Main_Copy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Copy.Image = ((System.Drawing.Image)(resources.GetObject("Main_Copy.Image")));
            this.Main_Copy.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Copy.Name = "Main_Copy";
            this.Main_Copy.Size = new System.Drawing.Size(23, 22);
            this.Main_Copy.Tag = "";
            this.Main_Copy.ToolTipText = "Copy";
            this.Main_Copy.Click += new System.EventHandler(this.Main_EditBtns_Click);
            // 
            // Main_Move
            // 
            this.Main_Move.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Move.Image = ((System.Drawing.Image)(resources.GetObject("Main_Move.Image")));
            this.Main_Move.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Move.Name = "Main_Move";
            this.Main_Move.Size = new System.Drawing.Size(23, 22);
            this.Main_Move.Tag = "";
            this.Main_Move.ToolTipText = "Move";
            this.Main_Move.Click += new System.EventHandler(this.Main_EditBtns_Click);
            // 
            // Main_Delete
            // 
            this.Main_Delete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Delete.Image = ((System.Drawing.Image)(resources.GetObject("Main_Delete.Image")));
            this.Main_Delete.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Delete.Name = "Main_Delete";
            this.Main_Delete.Size = new System.Drawing.Size(23, 22);
            this.Main_Delete.Tag = "";
            this.Main_Delete.ToolTipText = "Delete";
            this.Main_Delete.Click += new System.EventHandler(this.Main_EditBtns_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
            // 
            // Main_Media
            // 
            this.Main_Media.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Media.Image = global::Properties.Resources.movie;
            this.Main_Media.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Media.Name = "Main_Media";
            this.Main_Media.Size = new System.Drawing.Size(23, 22);
            this.Main_Media.Tag = "";
            this.Main_Media.ToolTipText = "Play Media";
            this.Main_Media.Click += new System.EventHandler(this.Main_Media_Click);
            // 
            // Main_Refresh
            // 
            this.Main_Refresh.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Refresh.Image = ((System.Drawing.Image)(resources.GetObject("Main_Refresh.Image")));
            this.Main_Refresh.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Refresh.Name = "Main_Refresh";
            this.Main_Refresh.Size = new System.Drawing.Size(23, 22);
            this.Main_Refresh.Tag = "";
            this.Main_Refresh.ToolTipText = "Refresh";
            this.Main_Refresh.Click += new System.EventHandler(this.Main_Refresh_Click);
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            // 
            // Main_Options
            // 
            this.Main_Options.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Options.Image = ((System.Drawing.Image)(resources.GetObject("Main_Options.Image")));
            this.Main_Options.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Options.Name = "Main_Options";
            this.Main_Options.Size = new System.Drawing.Size(23, 22);
            this.Main_Options.Tag = "";
            this.Main_Options.ToolTipText = "Options";
            this.Main_Options.Click += new System.EventHandler(this.Main_Options_Click);
            // 
            // toolStripSeparator3
            // 
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
            // 
            // Main_NoRotate
            // 
            this.Main_NoRotate.CheckOnClick = true;
            this.Main_NoRotate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_NoRotate.Image = global::Properties.Resources.rotate2;
            this.Main_NoRotate.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_NoRotate.Name = "Main_NoRotate";
            this.Main_NoRotate.Size = new System.Drawing.Size(23, 22);
            this.Main_NoRotate.Tag = "";
            this.Main_NoRotate.ToolTipText = "Stop Auto Rotate ";
            this.Main_NoRotate.Click += new System.EventHandler(this.Main_NoRotate_Click);
            // 
            // Main_RotateStyle
            // 
            this.Main_RotateStyle.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_RotateStyle.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Main_Rotate0,
            this.Main_Rotate1,
            this.Main_Rotate2,
            this.Main_Rotate3});
            this.Main_RotateStyle.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_RotateStyle.Name = "Main_RotateStyle";
            this.Main_RotateStyle.Size = new System.Drawing.Size(13, 22);
            this.Main_RotateStyle.ToolTipText = "Rotate Style";
            this.Main_RotateStyle.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Main_RotateStyle_DropDownItemClicked);
            // 
            // Main_Rotate0
            // 
            this.Main_Rotate0.Image = global::Properties.Resources.rotate;
            this.Main_Rotate0.Name = "Main_Rotate0";
            this.Main_Rotate0.Size = new System.Drawing.Size(236, 22);
            this.Main_Rotate0.Tag = "0";
            this.Main_Rotate0.Text = "Auto Rotate One Item ";
            // 
            // Main_Rotate1
            // 
            this.Main_Rotate1.Image = global::Properties.Resources.rotate;
            this.Main_Rotate1.Name = "Main_Rotate1";
            this.Main_Rotate1.Size = new System.Drawing.Size(236, 22);
            this.Main_Rotate1.Tag = "1";
            this.Main_Rotate1.Text = "Auto Rotate One Item - Repeat";
            // 
            // Main_Rotate2
            // 
            this.Main_Rotate2.Image = global::Properties.Resources.rotate1;
            this.Main_Rotate2.Name = "Main_Rotate2";
            this.Main_Rotate2.Size = new System.Drawing.Size(236, 22);
            this.Main_Rotate2.Tag = "2";
            this.Main_Rotate2.Text = "Auto Rotate Group";
            // 
            // Main_Rotate3
            // 
            this.Main_Rotate3.Image = global::Properties.Resources.rotate1;
            this.Main_Rotate3.Name = "Main_Rotate3";
            this.Main_Rotate3.Size = new System.Drawing.Size(236, 22);
            this.Main_Rotate3.Tag = "3";
            this.Main_Rotate3.Text = "Auto Rotate Group - Repeat";
            // 
            // Main_Alerts
            // 
            this.Main_Alerts.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Alerts.Image = global::Properties.Resources.error;
            this.Main_Alerts.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Alerts.Name = "Main_Alerts";
            this.Main_Alerts.Size = new System.Drawing.Size(23, 22);
            this.Main_Alerts.Tag = "";
            this.Main_Alerts.ToolTipText = "Alerts";
            this.Main_Alerts.Click += new System.EventHandler(this.Main_Alerts_Click);
            // 
            // Main_Chinese
            // 
            this.Main_Chinese.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Chinese.Image = ((System.Drawing.Image)(resources.GetObject("Main_Chinese.Image")));
            this.Main_Chinese.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Chinese.Name = "Main_Chinese";
            this.Main_Chinese.Size = new System.Drawing.Size(23, 22);
            this.Main_Chinese.Tag = "";
            this.Main_Chinese.ToolTipText = "Trad/Simp Chinese";
            this.Main_Chinese.Visible = false;
            this.Main_Chinese.Click += new System.EventHandler(this.Main_Chinese_Click);
            // 
            // toolStripSeparator4
            // 
            this.toolStripSeparator4.Name = "toolStripSeparator4";
            this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25);
            // 
            // Main_Find
            // 
            this.Main_Find.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Main_Find.Image = global::Properties.Resources.find;
            this.Main_Find.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_Find.Name = "Main_Find";
            this.Main_Find.Size = new System.Drawing.Size(23, 22);
            this.Main_Find.Tag = "";
            this.Main_Find.ToolTipText = "Find";
            this.Main_Find.Click += new System.EventHandler(this.Main_Find_Click);
            // 
            // Main_QuickFind
            // 
            this.Main_QuickFind.MaxDropDownItems = 12;
            this.Main_QuickFind.Name = "Main_QuickFind";
            this.Main_QuickFind.Size = new System.Drawing.Size(130, 25);
            this.Main_QuickFind.Tag = "";
            this.Main_QuickFind.Text = "Search Phrase";
            this.Main_QuickFind.ToolTipText = "Enter phrase and  press Keyboard Enter key";
            this.Main_QuickFind.Enter += new System.EventHandler(this.Main_QuickFind_Enter);
            this.Main_QuickFind.Leave += new System.EventHandler(this.Main_QuickFind_Leave);
            this.Main_QuickFind.KeyUp += new System.Windows.Forms.KeyEventHandler(this.Main_QuickFind_KeyUp);
            // 
            // Main_JumpA
            // 
            this.Main_JumpA.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Main_JumpA.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Main_JumpA.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_JumpA.Name = "Main_JumpA";
            this.Main_JumpA.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never;
            this.Main_JumpA.Size = new System.Drawing.Size(23, 22);
            this.Main_JumpA.Text = "A";
            this.Main_JumpA.Click += new System.EventHandler(this.Main_Jump_Click);
            // 
            // Main_JumpB
            // 
            this.Main_JumpB.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.Main_JumpB.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Main_JumpB.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_JumpB.Name = "Main_JumpB";
            this.Main_JumpB.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never;
            this.Main_JumpB.Size = new System.Drawing.Size(23, 22);
            this.Main_JumpB.Text = "B";
            this.Main_JumpB.Click += new System.EventHandler(this.Main_Jump_Click);
            // 
            // Main_JumpC
            // 
            this.Main_JumpC.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Main_JumpC.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Main_JumpC.Name = "Main_JumpC";
            this.Main_JumpC.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never;
            this.Main_JumpC.Size = new System.Drawing.Size(23, 22);
            this.Main_JumpC.Text = "C";
            this.Main_JumpC.Click += new System.EventHandler(this.Main_Jump_Click);
            // 
            // menuStripMain
            // 
            this.menuStripMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Menu_MainFile,
            this.Menu_MainEdit,
            this.Menu_MainView,
            this.Menu_MainOutput,
            this.Menu_MainTools,
            this.Menu_MainHelp});
            this.menuStripMain.Location = new System.Drawing.Point(0, 0);
            this.menuStripMain.Name = "menuStripMain";
            this.menuStripMain.Size = new System.Drawing.Size(942, 24);
            this.menuStripMain.TabIndex = 0;
            this.menuStripMain.Text = "menuStrip1";
            // 
            // Menu_MainFile
            // 
            this.Menu_MainFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Menu_WorshipSessions,
            this.Menu_PraiseBookTemplates,
            this.toolStripSeparator20,
            this.Menu_ListingOfSelectedFolder,
            this.toolStripSeparator16,
            this.Menu_EditHistoryList,
            this.toolStripSeparator18,
            this.Menu_Exit});
            this.Menu_MainFile.Name = "Menu_MainFile";
            this.Menu_MainFile.Size = new System.Drawing.Size(37, 20);
            this.Menu_MainFile.Text = "&File";
            // 
            // Menu_WorshipSessions
            // 
            this.Menu_WorshipSessions.Name = "Menu_WorshipSessions";
            this.Menu_WorshipSessions.Size = new System.Drawing.Size(206, 22);
            this.Menu_WorshipSessions.Text = "Worship Sessions...";
            this.Menu_WorshipSessions.Click += new System.EventHandler(this.Menu_WorshipLists_Click);
            // 
            // Menu_PraiseBookTemplates
            // 
            this.Menu_PraiseBookTemplates.Name = "Menu_PraiseBookTemplates";
            this.Menu_PraiseBookTemplates.Size = new System.Drawing.Size(206, 22);
            this.Menu_PraiseBookTemplates.Text = "PraiseBooks...";
            this.Menu_PraiseBookTemplates.Click += new System.EventHandler(this.Menu_PraiseBooks_Click);
            // 
            // toolStripSeparator20
            // 
            this.toolStripSeparator20.Name = "toolStripSeparator20";
            this.toolStripSeparator20.Size = new System.Drawing.Size(203, 6);
            // 
            // Menu_ListingOfSelectedFolder
            // 
            this.Menu_ListingOfSelectedFolder.Name = "Menu_ListingOfSelectedFolder";
            this.Menu_ListingOfSelectedFolder.Size = new System.Drawing.Size(206, 22);
            this.Menu_ListingOfSelectedFolder.Text = "Listing of Selected Folder";
            this.Menu_ListingOfSelectedFolder.Click += new System.EventHandler(this.Menu_ListingOfSelectedFolder_Click);
            // 
            // toolStripSeparator16
            // 
            this.toolStripSeparator16.Name = "toolStripSeparator16";
            this.toolStripSeparator16.Size = new System.Drawing.Size(203, 6);
            // 
            // Menu_EditHistoryList
            // 
            this.Menu_EditHistoryList.Name = "Menu_EditHistoryList";
            this.Menu_EditHistoryList.Size = new System.Drawing.Size(206, 22);
            this.Menu_EditHistoryList.Text = "Recent Edits";
            // 
            // toolStripSeparator18
            // 
            this.toolStripSeparator18.Name = "toolStripSeparator18";
            this.toolStripSeparator18.Size = new System.Drawing.Size(203, 6);
            // 
            // Menu_Exit
            // 
            this.Menu_Exit.Name = "Menu_Exit";
            this.Menu_Exit.Size = new System.Drawing.Size(206, 22);
            this.Menu_Exit.Text = "Exit";
            this.Menu_Exit.Click += new System.EventHandler(this.Menu_Exit_Click);
            // 
            // Menu_MainEdit
            // 
            this.Menu_MainEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Menu_AddSong,
            this.toolStripSeparator19,
            this.Menu_EditSong,
            this.Menu_CopySong,
            this.Menu_MoveSong,
            this.Menu_DeleteSong,
            this.toolStripSeparator41,
            this.Menu_SelectAll,
            this.Menu_Find,
            this.toolStripSeparator21,
            this.Menu_UseSongNumbering,
            this.Menu_ReArrangeSongFolders});
            this.Menu_MainEdit.Name = "Menu_MainEdit";
            this.Menu_MainEdit.Size = new System.Drawing.Size(39, 20);
            this.Menu_MainEdit.Text = "&Edit";
            // 
            // Menu_AddSong
            // 
            this.Menu_AddSong.Image = global::Properties.Resources._new;
            this.Menu_AddSong.Name = "Menu_AddSong";
            this.Menu_AddSong.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
            this.Menu_AddSong.Size = new System.Drawing.Size(205, 22);
            this.Menu_AddSong.Text = "Add New Song...";
            this.Menu_AddSong.Click += new System.EventHandler(this.Menu_AddSong_Click);
            // 
            // toolStripSeparator19
            // 
            this.toolStripSeparator19.Name = "toolStripSeparator19";
            this.toolStripSeparator19.Size = new System.Drawing.Size(202, 6);
            // 
            // Menu_EditSong
            // 
            this.Menu_EditSong.Name = "Menu_EditSong";
            this.Menu_EditSong.Size = new System.Drawing.Size(205, 22);
            this.Menu_EditSong.Text = "Edit";
            this.Menu_EditSong.Click += new System.EventHandler(this.Menu_EditSong_Click);
            // 
            // Menu_CopySong
            // 
            this.Menu_CopySong.Name = "Menu_CopySong";
            this.Menu_CopySong.Size = new System.Drawing.Size(205, 22);
            this.Menu_CopySong.Text = "Copy";
            this.Menu_CopySong.Click += new System.EventHandler(this.Menu_CopySong_Click);
            // 
            // Menu_MoveSong
            // 
            this.Menu_MoveSong.Name = "Menu_MoveSong";
            this.Menu_MoveSong.Size = new System.Drawing.Size(205, 22);
            this.Menu_MoveSong.Text = "Move";
            this.Menu_MoveSong.Click += new System.EventHandler(this.Menu_MoveSong_Click);
            // 
            // Menu_DeleteSong
            // 
            this.Menu_DeleteSong.Name = "Menu_DeleteSong";
            this.Menu_DeleteSong.Size = new System.Drawing.Size(205, 22);
            this.Menu_DeleteSong.Text = "Delete...";
            this.Menu_DeleteSong.Click += new System.EventHandler(this.Menu_DeleteSong_Click);
            // 
            // toolStripSeparator41
            // 
            this.toolStripSeparator41.Name = "toolStripSeparator41";
            this.toolStripSeparator41.Size = new System.Drawing.Size(202, 6);
            // 
            // Menu_SelectAll
            // 
            this.Menu_SelectAll.Name = "Menu_SelectAll";
            this.Menu_SelectAll.Size = new System.Drawing.Size(205, 22);
            this.Menu_SelectAll.Text = "Select All";
            this.Menu_SelectAll.Click += new System.EventHandler(this.Menu_SelectAll_Click);
            // 
            // Menu_Find
            // 
            this.Menu_Find.Image = global::Properties.Resources.find;
            this.Menu_Find.Name = "Menu_Find";
            this.Menu_Find.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F)));
            this.Menu_Find.Size = new System.Drawing.Size(205, 22);
            this.Menu_Find.Text = "Find";
            this.Menu_Find.Click += new System.EventHandler(this.Menu_Find_Click);
            // 
            // toolStripSeparator21
            // 
            this.toolStripSeparator21.Name = "toolStripSeparator21";
            this.toolStripSeparator21.Size = new System.Drawing.Size(202, 6);
            // 
            // Menu_UseSongNumbering
            // 
            this.Menu_UseSongNumbering.CheckOnClick = true;
            this.Menu_UseSongNumbering.Name = "Menu_UseSongNumbering";
            this.Menu_UseSongNumbering.Size = new System.Drawing.Size(205, 22);
            this.Menu_UseSongNumbering.Text = "Use Song Numbering";
            this.Menu_UseSongNumbering.Click += new System.EventHandler(this.Menu_useSongNumbering_Click);
            // 
            // Menu_ReArrangeSongFolders
            // 
            this.Menu_ReArrangeSongFolders.Name = "Menu_ReArrangeSongFolders";
            this.Menu_ReArrangeSongFolders.Size = new System.Drawing.Size(205, 22);
            this.Menu_ReArrangeSongFolders.Text = "Re-Arrange Song Folders";
            this.Menu_ReArrangeSongFolders.Click += new System.EventHandler(this.Menu_ReArrangeSongFolders_Click);
            // 
            // Menu_MainView
            // 
            this.Menu_MainView.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Menu_EasiSlidesFolder,
            this.Menu_Options,
            this.toolStripSeparator23,
            this.Menu_Refresh,
            this.Menu_PreviewNotations,
            this.Menu_StatusBar});
            this.Menu_MainView.Name = "Menu_MainView";
            this.Menu_MainView.Size = new System.Drawing.Size(44, 20);
            this.Menu_MainView.Text = "&View";
            // 
            // Menu_EasiSlidesFolder
            // 
            this.Menu_EasiSlidesFolder.Name = "Menu_EasiSlidesFolder";
            this.Menu_EasiSlidesFolder.Size = new System.Drawing.Size(215, 22);
            this.Menu_EasiSlidesFolder.Text = "EasiSlides Folder";
            this.Menu_EasiSlidesFolder.Click += new System.EventHandler(this.Menu_EasiSlidesFolder_Click);
            // 
            // Menu_Options
            // 
            this.Menu_Options.Name = "Menu_Options";
            this.Menu_Options.Size = new System.Drawing.Size(215, 22);
            this.Menu_Options.Text = "Options";
            this.Menu_Options.Click += new System.EventHandler(this.Menu_Options_Click);
            // 
            // toolStripSeparator23
            // 
            this.toolStripSeparator23.Name = "toolStripSeparator23";
            this.toolStripSeparator23.Size = new System.Drawing.Size(212, 6);
            // 
            // Menu_Refresh
            // 
            this.Menu_Refresh.Name = "Menu_Refresh";
            this.Menu_Refresh.Size = new System.Drawing.Size(215, 22);
            this.Menu_Refresh.Text = "Refresh";
            this.Menu_Refresh.Click += new System.EventHandler(this.Menu_Refresh_Click);
            // 
            // Menu_PreviewNotations
            // 
            this.Menu_PreviewNotations.CheckOnClick = true;
            this.Menu_PreviewNotations.Name = "Menu_PreviewNotations";
            this.Menu_PreviewNotations.Size = new System.Drawing.Size(215, 22);
            this.Menu_PreviewNotations.Text = "Show Notations in Preview";
            this.Menu_PreviewNotations.Click += new System.EventHandler(this.Menu_PreviewNotations_Click);
            // 
            // Menu_StatusBar
            // 
            this.Menu_StatusBar.Checked = true;
            this.Menu_StatusBar.CheckState = System.Windows.Forms.CheckState.Checked;
            this.Menu_StatusBar.Name = "Menu_StatusBar";
            this.Menu_StatusBar.Size = new System.Drawing.Size(215, 22);
            this.Menu_StatusBar.Text = "Status Bar";
            this.Menu_StatusBar.Click += new System.EventHandler(this.Menu_StatusBar_Click);
            // 
            // Menu_MainOutput
            // 
            this.Menu_MainOutput.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Menu_StartShow,
            this.Menu_GoLiveWithPreview,
            this.Menu_RefreshOutput,
            this.toolStripSeparator28,
            this.Menu_BlackScreen,
            this.Menu_ClearScreen,
            this.Menu_LiveCam,
            this.Menu_RestartCurrentItem,
            this.toolStripSeparator29,
            this.Menu_AlertWindow,
            this.Menu_StopAlert,
            this.toolStripSeparator30,
            this.Menu_SwitchChinese});
            this.Menu_MainOutput.Name = "Menu_MainOutput";
            this.Menu_MainOutput.Size = new System.Drawing.Size(57, 20);
            this.Menu_MainOutput.Text = "&Output";
            // 
            // Menu_StartShow
            // 
            this.Menu_StartShow.Name = "Menu_StartShow";
            this.Menu_StartShow.ShortcutKeys = System.Windows.Forms.Keys.F12;
            this.Menu_StartShow.Size = new System.Drawing.Size(248, 22);
            this.Menu_StartShow.Text = "Start Show - Go LIVE";
            this.Menu_StartShow.Click += new System.EventHandler(this.Menu_StartShow_Click);
            // 
            // Menu_GoLiveWithPreview
            // 
            this.Menu_GoLiveWithPreview.Name = "Menu_GoLiveWithPreview";
            this.Menu_GoLiveWithPreview.ShortcutKeys = System.Windows.Forms.Keys.F11;
            this.Menu_GoLiveWithPreview.Size = new System.Drawing.Size(248, 22);
            this.Menu_GoLiveWithPreview.Text = "Preview: Go Live, Move Next";
            this.Menu_GoLiveWithPreview.Click += new System.EventHandler(this.Menu_PreviewGoLiveNext_Click);
            // 
            // Menu_RefreshOutput
            // 
            this.Menu_RefreshOutput.Name = "Menu_RefreshOutput";
            this.Menu_RefreshOutput.Size = new System.Drawing.Size(248, 22);
            this.Menu_RefreshOutput.Text = "Refresh Output";
            this.Menu_RefreshOutput.Click += new System.EventHandler(this.Menu_RefreshOutput_Click);
            // 
            // toolStripSeparator28
            // 
            this.toolStripSeparator28.Name = "toolStripSeparator28";
            this.toolStripSeparator28.Size = new System.Drawing.Size(245, 6);
            // 
            // Menu_BlackScreen
            // 
            this.Menu_BlackScreen.Name = "Menu_BlackScreen";
            this.Menu_BlackScreen.ShortcutKeys = System.Windows.Forms.Keys.F2;
            this.Menu_BlackScreen.Size = new System.Drawing.Size(248, 22);
            this.Menu_BlackScreen.Text = "Black Screen";
            this.Menu_BlackScreen.Click += new System.EventHandler(this.Menu_BlackScreen_Click);
            // 
            // Menu_ClearScreen
            // 
            this.Menu_ClearScreen.Name = "Menu_ClearScreen";
            this.Menu_ClearScreen.ShortcutKeys = System.Windows.Forms.Keys.F3;
            this.Menu_ClearScreen.Size = new System.Drawing.Size(248, 22);
            this.Menu_ClearScreen.Text = "Clear Screen";
            this.Menu_ClearScreen.Click += new System.EventHandler(this.Menu_ClearScreen_Click);
            // 
            // Menu_LiveCam
            // 
            this.Menu_LiveCam.Name = "Menu_LiveCam";
            this.Menu_LiveCam.ShortcutKeys = System.Windows.Forms.Keys.F4;
            this.Menu_LiveCam.Size = new System.Drawing.Size(248, 22);
            this.Menu_LiveCam.Text = "Live Cam";
            this.Menu_LiveCam.Click += new System.EventHandler(this.Menu_LiveCam_Click);
            // 
            // Menu_RestartCurrentItem
            // 
            this.Menu_RestartCurrentItem.Name = "Menu_RestartCurrentItem";
            this.Menu_RestartCurrentItem.ShortcutKeys = System.Windows.Forms.Keys.F5;
            this.Menu_RestartCurrentItem.Size = new System.Drawing.Size(248, 22);
            this.Menu_RestartCurrentItem.Text = "Restart Current Item";
            this.Menu_RestartCurrentItem.Click += new System.EventHandler(this.Menu_RestartCurrentItem_Click);
            // 
            // toolStripSeparator29
            // 
            this.toolStripSeparator29.Name = "toolStripSeparator29";
            this.toolStripSeparator29.Size = new System.Drawing.Size(245, 6);
            // 
            // Menu_AlertWindow
            // 
            this.Menu_AlertWindow.Name = "Menu_AlertWindow";
            this.Menu_AlertWindow.ShortcutKeys = System.Windows.Forms.Keys.F9;
            this.Menu_AlertWindow.Size = new System.Drawing.Size(248, 22);
            this.Menu_AlertWindow.Text = "Show Alert Window";
            this.Menu_AlertWindow.Click += new System.EventHandler(this.Menu_AlertWindow_Click);
            // 
            // Menu_StopAlert
            // 
            this.Menu_StopAlert.Name = "Menu_StopAlert";
            this.Menu_StopAlert.Size = new System.Drawing.Size(248, 22);
            this.Menu_StopAlert.Text = "Stop Alert";
            this.Menu_StopAlert.Click += new System.EventHandler(this.Menu_StopAlert_Click);
            // 
            // toolStripSeparator30
            // 
            this.toolStripSeparator30.Name = "toolStripSeparator30";
            this.toolStripSeparator30.Size = new System.Drawing.Size(245, 6);
            // 
            // Menu_SwitchChinese
            // 
            this.Menu_SwitchChinese.Name = "Menu_SwitchChinese";
            this.Menu_SwitchChinese.ShortcutKeys = System.Windows.Forms.Keys.F10;
            this.Menu_SwitchChinese.Size = new System.Drawing.Size(248, 22);
            this.Menu_SwitchChinese.Text = "Switch Trad/Simp Chinese";
            this.Menu_SwitchChinese.Click += new System.EventHandler(this.Menu_SwitchChinese_Click);
            // 
            // Menu_MainTools
            // 
            this.Menu_MainTools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Menu_Import,
            this.Menu_ImportFolder,
            this.Menu_Export,
            this.toolStripSeparator32,
            this.Menu_Recover,
            this.Menu_Empty,
            this.toolStripSeparator33,
            this.Menu_AddToUsages,
            this.Menu_ViewUsages,
            this.toolStripSeparator34,
            this.Menu_SmartMerge,
            this.Menu_Compact,
            this.Menu_ClearAllFormatting,
            this.toolStripSeparator9,
            this.Menu_ClearRegistrySettings});
            this.Menu_MainTools.Name = "Menu_MainTools";
            this.Menu_MainTools.Size = new System.Drawing.Size(48, 20);
            this.Menu_MainTools.Text = "&Tools";
            // 
            // Menu_Import
            // 
            this.Menu_Import.Name = "Menu_Import";
            this.Menu_Import.Size = new System.Drawing.Size(288, 22);
            this.Menu_Import.Text = "&Import";
            this.Menu_Import.Click += new System.EventHandler(this.Menu_Import_Click);
            // 
            // Menu_ImportFolder
            // 
            this.Menu_ImportFolder.Name = "Menu_ImportFolder";
            this.Menu_ImportFolder.Size = new System.Drawing.Size(288, 22);
            this.Menu_ImportFolder.Text = "I&mport Folder";
            this.Menu_ImportFolder.Click += new System.EventHandler(this.Menu_ImportFolder_Click);
            // 
            // Menu_Export
            // 
            this.Menu_Export.Name = "Menu_Export";
            this.Menu_Export.Size = new System.Drawing.Size(288, 22);
            this.Menu_Export.Text = "&Export";
            this.Menu_Export.Click += new System.EventHandler(this.Menu_Export_Click);
            // 
            // toolStripSeparator32
            // 
            this.toolStripSeparator32.Name = "toolStripSeparator32";
            this.toolStripSeparator32.Size = new System.Drawing.Size(285, 6);
            // 
            // Menu_Recover
            // 
            this.Menu_Recover.Name = "Menu_Recover";
            this.Menu_Recover.Size = new System.Drawing.Size(288, 22);
            this.Menu_Recover.Text = "&Recover Deleted Items";
            this.Menu_Recover.Click += new System.EventHandler(this.Menu_Recover_Click);
            // 
            // Menu_Empty
            // 
            this.Menu_Empty.Name = "Menu_Empty";
            this.Menu_Empty.Size = new System.Drawing.Size(288, 22);
            this.Menu_Empty.Text = "&Empty Deleted Folder...";
            this.Menu_Empty.Click += new System.EventHandler(this.Menu_Empty_Click);
            // 
            // toolStripSeparator33
            // 
            this.toolStripSeparator33.Name = "toolStripSeparator33";
            this.toolStripSeparator33.Size = new System.Drawing.Size(285, 6);
            // 
            // Menu_AddToUsages
            // 
            this.Menu_AddToUsages.Name = "Menu_AddToUsages";
            this.Menu_AddToUsages.Size = new System.Drawing.Size(288, 22);
            this.Menu_AddToUsages.Text = "&Add Worship List to Usages";
            this.Menu_AddToUsages.Click += new System.EventHandler(this.Menu_AddToUsages_Click);
            // 
            // Menu_ViewUsages
            // 
            this.Menu_ViewUsages.Name = "Menu_ViewUsages";
            this.Menu_ViewUsages.Size = new System.Drawing.Size(288, 22);
            this.Menu_ViewUsages.Text = "&View usages";
            this.Menu_ViewUsages.Click += new System.EventHandler(this.Menu_ViewUsages_Click);
            // 
            // toolStripSeparator34
            // 
            this.toolStripSeparator34.Name = "toolStripSeparator34";
            this.toolStripSeparator34.Size = new System.Drawing.Size(285, 6);
            // 
            // Menu_SmartMerge
            // 
            this.Menu_SmartMerge.Name = "Menu_SmartMerge";
            this.Menu_SmartMerge.Size = new System.Drawing.Size(288, 22);
            this.Menu_SmartMerge.Text = "&Smart Merge";
            this.Menu_SmartMerge.Click += new System.EventHandler(this.Menu_SmartMerge_Click);
            // 
            // Menu_Compact
            // 
            this.Menu_Compact.Name = "Menu_Compact";
            this.Menu_Compact.Size = new System.Drawing.Size(288, 22);
            this.Menu_Compact.Text = "&Compact and Repair Databases";
            this.Menu_Compact.Click += new System.EventHandler(this.Menu_Compact_Click);
            // 
            // Menu_ClearAllFormatting
            // 
            this.Menu_ClearAllFormatting.Name = "Menu_ClearAllFormatting";
            this.Menu_ClearAllFormatting.Size = new System.Drawing.Size(288, 22);
            this.Menu_ClearAllFormatting.Text = "Clear All &Formatting in Database.";
            this.Menu_ClearAllFormatting.Click += new System.EventHandler(this.Menu_ClearAllFormatting_Click);
            // 
            // toolStripSeparator9
            // 
            this.toolStripSeparator9.Name = "toolStripSeparator9";
            this.toolStripSeparator9.Size = new System.Drawing.Size(285, 6);
            // 
            // Menu_ClearRegistrySettings
            // 
            this.Menu_ClearRegistrySettings.Name = "Menu_ClearRegistrySettings";
            this.Menu_ClearRegistrySettings.Size = new System.Drawing.Size(288, 22);
            this.Menu_ClearRegistrySettings.Text = "Clear EasiSlides Registry Settings and Exit";
            this.Menu_ClearRegistrySettings.Click += new System.EventHandler(this.Menu_ClearRegistrySettings_Click);
            // 
            // Menu_MainHelp
            // 
            this.Menu_MainHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Menu_Contents,
            this.Menu_HelpWeb,
            this.toolStripSeparator31,
            this.Menu_Register,
            this.Menu_About});
            this.Menu_MainHelp.Name = "Menu_MainHelp";
            this.Menu_MainHelp.Size = new System.Drawing.Size(44, 20);
            this.Menu_MainHelp.Text = "&Help";
            // 
            // Menu_Contents
            // 
            this.Menu_Contents.Name = "Menu_Contents";
            this.Menu_Contents.ShortcutKeys = System.Windows.Forms.Keys.F1;
            this.Menu_Contents.Size = new System.Drawing.Size(205, 22);
            this.Menu_Contents.Text = "Contents";
            this.Menu_Contents.Click += new System.EventHandler(this.Menu_Contents_Click);
            // 
            // Menu_HelpWeb
            // 
            this.Menu_HelpWeb.Name = "Menu_HelpWeb";
            this.Menu_HelpWeb.Size = new System.Drawing.Size(205, 22);
            this.Menu_HelpWeb.Text = "Help on the Web";
            this.Menu_HelpWeb.Click += new System.EventHandler(this.Menu_HelpWeb_Click);
            // 
            // toolStripSeparator31
            // 
            this.toolStripSeparator31.Name = "toolStripSeparator31";
            this.toolStripSeparator31.Size = new System.Drawing.Size(202, 6);
            this.toolStripSeparator31.Visible = false;
            // 
            // Menu_Register
            // 
            this.Menu_Register.Name = "Menu_Register";
            this.Menu_Register.Size = new System.Drawing.Size(205, 22);
            this.Menu_Register.Text = "Register Use of EasiSlides";
            this.Menu_Register.Visible = false;
            this.Menu_Register.Click += new System.EventHandler(this.Menu_Register_Click);
            // 
            // Menu_About
            // 
            this.Menu_About.Name = "Menu_About";
            this.Menu_About.Size = new System.Drawing.Size(205, 22);
            this.Menu_About.Text = "About EasiSlides";
            this.Menu_About.Visible = false;
            this.Menu_About.Click += new System.EventHandler(this.Menu_About_Click);
            // 
            // statusStripMain
            // 
            this.statusStripMain.AutoSize = false;
            this.statusStripMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.StatusBarPanel1,
            this.StatusBarPanel2,
            this.StatusBarPanel3,
            this.StatusBarPanel4});
            this.statusStripMain.Location = new System.Drawing.Point(0, 467);
            this.statusStripMain.Name = "statusStripMain";
            this.statusStripMain.Size = new System.Drawing.Size(942, 22);
            this.statusStripMain.TabIndex = 1;
            // 
            // StatusBarPanel1
            // 
            this.StatusBarPanel1.AutoSize = false;
            this.StatusBarPanel1.AutoToolTip = true;
            this.StatusBarPanel1.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right)));
            this.StatusBarPanel1.BorderStyle = System.Windows.Forms.Border3DStyle.RaisedInner;
            this.StatusBarPanel1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.StatusBarPanel1.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
            this.StatusBarPanel1.Name = "StatusBarPanel1";
            this.StatusBarPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 4, 0);
            this.StatusBarPanel1.Size = new System.Drawing.Size(10, 17);
            this.StatusBarPanel1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // StatusBarPanel2
            // 
            this.StatusBarPanel2.AutoSize = false;
            this.StatusBarPanel2.AutoToolTip = true;
            this.StatusBarPanel2.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right)));
            this.StatusBarPanel2.BorderStyle = System.Windows.Forms.Border3DStyle.RaisedInner;
            this.StatusBarPanel2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.StatusBarPanel2.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
            this.StatusBarPanel2.Name = "StatusBarPanel2";
            this.StatusBarPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 4, 0);
            this.StatusBarPanel2.Size = new System.Drawing.Size(10, 17);
            this.StatusBarPanel2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // StatusBarPanel3
            // 
            this.StatusBarPanel3.AutoSize = false;
            this.StatusBarPanel3.AutoToolTip = true;
            this.StatusBarPanel3.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right)));
            this.StatusBarPanel3.BorderStyle = System.Windows.Forms.Border3DStyle.RaisedInner;
            this.StatusBarPanel3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.StatusBarPanel3.Name = "StatusBarPanel3";
            this.StatusBarPanel3.Padding = new System.Windows.Forms.Padding(3, 0, 4, 0);
            this.StatusBarPanel3.Size = new System.Drawing.Size(10, 17);
            this.StatusBarPanel3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // StatusBarPanel4
            // 
            this.StatusBarPanel4.AutoSize = false;
            this.StatusBarPanel4.AutoToolTip = true;
            this.StatusBarPanel4.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right)));
            this.StatusBarPanel4.BorderStyle = System.Windows.Forms.Border3DStyle.RaisedInner;
            this.StatusBarPanel4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.StatusBarPanel4.Name = "StatusBarPanel4";
            this.StatusBarPanel4.Padding = new System.Windows.Forms.Padding(3, 0, 4, 0);
            this.StatusBarPanel4.Size = new System.Drawing.Size(10, 17);
            this.StatusBarPanel4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // TimerFlasher
            // 
            this.TimerFlasher.Interval = 600;
            this.TimerFlasher.Tick += new System.EventHandler(this.TimerFlasher_Tick);
            // 
            // TimerReMax
            // 
            this.TimerReMax.Interval = 1000;
            // 
            // TimerSearch
            // 
            this.TimerSearch.Interval = 500;
            this.TimerSearch.Tick += new System.EventHandler(this.TimerSearch_Tick);
            // 
            // CMenuImages
            // 
            this.CMenuImages.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.CMenuImages_AddItem,
            this.CMenuImages_AddDefault,
            this.toolStripSeparator35,
            this.CMenuImages_Refresh});
            this.CMenuImages.Name = "CMenuImages";
            this.CMenuImages.Size = new System.Drawing.Size(181, 76);
            this.CMenuImages.Opening += new System.ComponentModel.CancelEventHandler(this.CMenuImages_Opening);
            // 
            // CMenuImages_AddItem
            // 
            this.CMenuImages_AddItem.Name = "CMenuImages_AddItem";
            this.CMenuImages_AddItem.Size = new System.Drawing.Size(180, 22);
            this.CMenuImages_AddItem.Text = "Add to Item";
            this.CMenuImages_AddItem.Click += new System.EventHandler(this.CMenuImages_AddItem_Click);
            // 
            // CMenuImages_AddDefault
            // 
            this.CMenuImages_AddDefault.Name = "CMenuImages_AddDefault";
            this.CMenuImages_AddDefault.Size = new System.Drawing.Size(180, 22);
            this.CMenuImages_AddDefault.Text = "Add to Default";
            this.CMenuImages_AddDefault.Click += new System.EventHandler(this.CMenuImages_AddDefault_Click);
            // 
            // toolStripSeparator35
            // 
            this.toolStripSeparator35.Name = "toolStripSeparator35";
            this.toolStripSeparator35.Size = new System.Drawing.Size(177, 6);
            // 
            // CMenuImages_Refresh
            // 
            this.CMenuImages_Refresh.Name = "CMenuImages_Refresh";
            this.CMenuImages_Refresh.Size = new System.Drawing.Size(180, 22);
            this.CMenuImages_Refresh.Text = "Refresh Images Lists";
            this.CMenuImages_Refresh.Click += new System.EventHandler(this.CMenuImages_Refresh_Click);
            // 
            // TimerMessagingWindowOpen
            // 
            this.TimerMessagingWindowOpen.Interval = 1000;
            this.TimerMessagingWindowOpen.Tick += new System.EventHandler(this.TimerMessagingWindowOpen_Tick);
            // 
            // TimerToFront
            // 
            this.TimerToFront.Enabled = true;
            this.TimerToFront.Tick += new System.EventHandler(this.TimerToFront_Tick);
            // 
            // FrmMain
            // 
            this.AutoSize = true;
            this.ClientSize = new System.Drawing.Size(942, 489);
            this.Controls.Add(this.toolStripContainerMain);
            this.Controls.Add(this.menuStripMain);
            this.Controls.Add(this.statusStripMain);
            this.KeyPreview = true;
            this.MainMenuStrip = this.menuStripMain;
            this.Name = "FrmMain";
            this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            this.Text = "Silder";
            this.TopMost = true;
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing);
            this.Load += new System.EventHandler(this.FrmMain_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmMain_KeyDown);
            this.Resize += new System.EventHandler(this.FrmMain_Resize);
            this.toolStripContainerMain.ContentPanel.ResumeLayout(false);
            this.toolStripContainerMain.TopToolStripPanel.ResumeLayout(false);
            this.toolStripContainerMain.TopToolStripPanel.PerformLayout();
            this.toolStripContainerMain.ResumeLayout(false);
            this.toolStripContainerMain.PerformLayout();
            this.splitContainerMain.Panel1.ResumeLayout(false);
            this.splitContainerMain.Panel2.ResumeLayout(false);
            this.splitContainerMain.ResumeLayout(false);
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.ResumeLayout(false);
            this.tabControlSource.ResumeLayout(false);
            this.tabFolders.ResumeLayout(false);
            this.panelFolders.ResumeLayout(false);
            this.toolStripFolders.ResumeLayout(false);
            this.toolStripFolders.PerformLayout();
            this.CMenuSongs.ResumeLayout(false);
            this.tabFiles.ResumeLayout(false);
            this.panelInfoScreen2.ResumeLayout(false);
            this.InfoScreentoolstrip2.ResumeLayout(false);
            this.InfoScreentoolstrip2.PerformLayout();
            this.panelExternalFiles.ResumeLayout(false);
            this.panelInfoScreen1.ResumeLayout(false);
            this.InfoScreentoolstrip1.ResumeLayout(false);
            this.InfoScreentoolstrip1.PerformLayout();
            this.CMenuFiles.ResumeLayout(false);
            this.tabPowerpoint.ResumeLayout(false);
            this.panelPowerpoint2.ResumeLayout(false);
            this.toolStripPowerpoint2.ResumeLayout(false);
            this.toolStripPowerpoint2.PerformLayout();
            this.panelPowerpoint1.ResumeLayout(false);
            this.panelExternalFiles1.ResumeLayout(false);
            this.toolStripPowerpoint1.ResumeLayout(false);
            this.toolStripPowerpoint1.PerformLayout();
            this.tabBibles.ResumeLayout(false);
            this.tabBibles.PerformLayout();
            this.CMenuBible.ResumeLayout(false);
            this.panelBible2.ResumeLayout(false);
            this.toolStripBible2.ResumeLayout(false);
            this.toolStripBible2.PerformLayout();
            this.TabBibleVersions.ResumeLayout(false);
            this.tabImages.ResumeLayout(false);
            this.panelImagesTop.ResumeLayout(false);
            this.panelImage1.ResumeLayout(false);
            this.toolStripImage1.ResumeLayout(false);
            this.toolStripImage1.PerformLayout();
            this.tabMedia.ResumeLayout(false);
            this.panel11.ResumeLayout(false);
            this.panelMedia1.ResumeLayout(false);
            this.toolStripMedia1.ResumeLayout(false);
            this.toolStripMedia1.PerformLayout();
            this.tabDefault.ResumeLayout(false);
            this.DefPanel.ResumeLayout(false);
            this.panelDefTemplate.ResumeLayout(false);
            this.toolStripDefTemplates.ResumeLayout(false);
            this.toolStripDefTemplates.PerformLayout();
            this.DefgroupBox2.ResumeLayout(false);
            this.panelDef4.ResumeLayout(false);
            this.toolStripDef4.ResumeLayout(false);
            this.toolStripDef4.PerformLayout();
            this.panelDef3.ResumeLayout(false);
            this.toolStripDef3.ResumeLayout(false);
            this.toolStripDef3.PerformLayout();
            this.DefgroupBox3.ResumeLayout(false);
            this.DefgroupBox3.PerformLayout();
            this.panel21.ResumeLayout(false);
            this.toolStripDef7.ResumeLayout(false);
            this.toolStripDef7.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Def_PanelHeight)).EndInit();
            this.panelDef5.ResumeLayout(false);
            this.toolStripDef5.ResumeLayout(false);
            this.toolStripDef5.PerformLayout();
            this.panelDef6.ResumeLayout(false);
            this.toolStripDef6.ResumeLayout(false);
            this.toolStripDef6.PerformLayout();
            this.DefgroupBox1.ResumeLayout(false);
            this.panelDef2.ResumeLayout(false);
            this.toolStripDef2.ResumeLayout(false);
            this.toolStripDef2.PerformLayout();
            this.panelDef1.ResumeLayout(false);
            this.toolStripDef1.ResumeLayout(false);
            this.toolStripDef1.PerformLayout();
            this.tabControlLists.ResumeLayout(false);
            this.tabWorshipList.ResumeLayout(false);
            this.panelWorshipList2.ResumeLayout(false);
            this.toolStripWorshipList2.ResumeLayout(false);
            this.toolStripWorshipList2.PerformLayout();
            this.panelWorshipList1.ResumeLayout(false);
            this.toolStripWorshipList1.ResumeLayout(false);
            this.toolStripWorshipList1.PerformLayout();
            this.CMenuWorship.ResumeLayout(false);
            this.tabPraiseBook.ResumeLayout(false);
            this.panelPraiseBook2.ResumeLayout(false);
            this.toolStripPraiseBook2.ResumeLayout(false);
            this.toolStripPraiseBook2.PerformLayout();
            this.panelPraiseBook1.ResumeLayout(false);
            this.toolStripPraiseBook1.ResumeLayout(false);
            this.toolStripPraiseBook1.PerformLayout();
            this.CMenuPraiseB.ResumeLayout(false);
            this.splitContainer2.Panel1.ResumeLayout(false);
            this.splitContainer2.Panel2.ResumeLayout(false);
            this.splitContainer2.ResumeLayout(false);
            this.splitContainerPreview.Panel1.ResumeLayout(false);
            this.splitContainerPreview.Panel2.ResumeLayout(false);
            this.splitContainerPreview.ResumeLayout(false);
            this.panelPreviewTop.ResumeLayout(false);
            this.IndPanel.ResumeLayout(false);
            this.IndPanel.PerformLayout();
            this.panelIndTemplate.ResumeLayout(false);
            this.toolStripIndTemplates.ResumeLayout(false);
            this.toolStripIndTemplates.PerformLayout();
            this.IndgroupBox4.ResumeLayout(false);
            this.IndgroupBox4.PerformLayout();
            this.panelInd7.ResumeLayout(false);
            this.toolStripInd7.ResumeLayout(false);
            this.toolStripInd7.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_Reg2SizeUpDown)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_Reg2TopUpDown)).EndInit();
            this.panelInd6.ResumeLayout(false);
            this.toolStripInd6.ResumeLayout(false);
            this.toolStripInd6.PerformLayout();
            this.IndgroupBox3.ResumeLayout(false);
            this.IndgroupBox3.PerformLayout();
            this.panelInd5.ResumeLayout(false);
            this.toolStripInd5.ResumeLayout(false);
            this.toolStripInd5.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_Reg1SizeUpDown)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_Reg1TopUpDown)).EndInit();
            this.panelInd4.ResumeLayout(false);
            this.toolStripInd4.ResumeLayout(false);
            this.toolStripInd4.PerformLayout();
            this.IndgroupBox2.ResumeLayout(false);
            this.IndgroupBox2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_BottomUpDown)).EndInit();
            this.panelInd3.ResumeLayout(false);
            this.toolStripInd3.ResumeLayout(false);
            this.toolStripInd3.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_RightUpDown)).EndInit();
            this.panelInd2.ResumeLayout(false);
            this.toolStripInd2.ResumeLayout(false);
            this.toolStripInd2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Ind_LeftUpDown)).EndInit();
            this.IndgroupBox1.ResumeLayout(false);
            this.panel4.ResumeLayout(false);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.panelInd1.ResumeLayout(false);
            this.toolStripInd1.ResumeLayout(false);
            this.toolStripInd1.PerformLayout();
            this.panel9.ResumeLayout(false);
            this.panelPreviewBottom.ResumeLayout(false);
            this.panelPreviewSessionNotes2.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.flowLayoutPanel1.ResumeLayout(false);
            this.panel3.ResumeLayout(false);
            this.panel3.PerformLayout();
            this.splitContainerOutput.Panel1.ResumeLayout(false);
            this.splitContainerOutput.Panel2.ResumeLayout(false);
            this.splitContainerOutput.ResumeLayout(false);
            this.panelOutputTop.ResumeLayout(false);
            this.panelOutputTop.PerformLayout();
            this.panel10.ResumeLayout(false);
            this.panelOutputBottom.ResumeLayout(false);
            this.panelOutputLM1.ResumeLayout(false);
            this.panelOutputLM1.PerformLayout();
            this.panelOutputLM3.ResumeLayout(false);
            this.panel8.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.flowLayoutPanel2.ResumeLayout(false);
            this.panel6.ResumeLayout(false);
            this.toolStripMain.ResumeLayout(false);
            this.toolStripMain.PerformLayout();
            this.menuStripMain.ResumeLayout(false);
            this.menuStripMain.PerformLayout();
            this.statusStripMain.ResumeLayout(false);
            this.statusStripMain.PerformLayout();
            this.CMenuImages.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        private void FrmMain_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Control && e.KeyCode == Keys.N)
            {
                Menu_AddSong_Click(null,null);
            }
            if (e.Control && e.KeyCode == Keys.F)
            {
                this.Find_Items();
            }
        }
    }
}
